{"id":1654,"date":"2025-11-11T17:42:54","date_gmt":"2025-11-11T23:42:54","guid":{"rendered":"https:\/\/www.oaxaca.gob.mx\/sep\/?page_id=1654"},"modified":"2025-11-11T21:52:17","modified_gmt":"2025-11-12T03:52:17","slug":"sirvoe","status":"publish","type":"page","link":"https:\/\/www.oaxaca.gob.mx\/sep\/sirvoe\/","title":{"rendered":"sirvoe"},"content":{"rendered":"<p> true,<br \/>\n        CURLOPT_FOLLOWLOCATION =&gt; true,<br \/>\n        CURLOPT_SSL_VERIFYPEER =&gt; true,<br \/>\n        CURLOPT_SSL_VERIFYHOST =&gt; 2,<br \/>\n        CURLOPT_USERAGENT =&gt; &#8216;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36&#8217;,<br \/>\n        CURLOPT_TIMEOUT =&gt; $timeoutSeconds,<br \/>\n    ]);<\/p>\n<p>    $response = curl_exec($curl);<br \/>\n    $curlError = curl_error($curl);<br \/>\n    $httpCode = (int) curl_getinfo($curl, CURLINFO_HTTP_CODE);<br \/>\n    $contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: null;<br \/>\n    curl_close($curl);<\/p>\n<p>    if ($response !== false &amp;&amp; $httpCode &gt;= 200 &amp;&amp; $httpCode  [<br \/>\n            &#8216;method&#8217; =&gt; &#8216;GET&#8217;,<br \/>\n            &#8216;header&#8217; =&gt; \u00abUser-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36\\r\\n\u00bb,<br \/>\n            &#8216;timeout&#8217; =&gt; $timeoutSeconds,<br \/>\n        ],<br \/>\n        &#8216;ssl&#8217; =&gt; [<br \/>\n            &#8216;verify_peer&#8217; =&gt; true,<br \/>\n            &#8216;verify_peer_name&#8217; =&gt; true,<br \/>\n        ],<br \/>\n    ]);<\/p>\n<p>    $response = @file_get_contents($remoteUrl, false, $context);<br \/>\n    if ($response !== false) {<br \/>\n        $html = $response;<br \/>\n        if (isset($http_response_header) &amp;&amp; is_array($http_response_header)) {<br \/>\n            foreach ($http_response_header as $headerLine) {<br \/>\n                if (stripos($headerLine, &#8216;Content-Type:&#8217;) === 0) {<br \/>\n                    $contentType = trim(substr($headerLine, strlen(&#8216;Content-Type:&#8217;)));<br \/>\n                    break;<br \/>\n                }<br \/>\n            }<br \/>\n        }<br \/>\n    } else {<br \/>\n        $errorMessage = error_get_last()[&#8216;message&#8217;] ?? &#8216;No fue posible obtener la p\u00e1gina.&#8217;;<br \/>\n    }<br \/>\n} else {<br \/>\n    $errorMessage = &#8216;No hay soporte para cURL ni para fopen remoto en este servidor.&#8217;;<br \/>\n}<\/p>\n<p>if ($html === null) {<br \/>\n    http_response_code(502);<br \/>\n    header(&#8216;Content-Type: text\/html; charset=utf-8&#8217;);<br \/>\n    ?&gt;<\/p>\n<p>        <title>Error al replicar la p\u00e1gina<\/title><\/p>\n<p>            body {<br \/>\n                font-family: system-ui, -apple-system, BlinkMacSystemFont, \u00abSegoe UI\u00bb, sans-serif;<br \/>\n                margin: 0;<br \/>\n                padding: 2rem;<br \/>\n                background-color: #f5f5f5;<br \/>\n                color: #333;<br \/>\n            }<br \/>\n            .container {<br \/>\n                max-width: 640px;<br \/>\n                margin: 0 auto;<br \/>\n                background: #fff;<br \/>\n                border-radius: 12px;<br \/>\n                padding: 2rem;<br \/>\n                box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);<br \/>\n            }<br \/>\n            h1 {<br \/>\n                margin-top: 0;<br \/>\n                font-size: 1.75rem;<br \/>\n            }<br \/>\n            pre {<br \/>\n                background: #1f2937;<br \/>\n                color: #f9fafb;<br \/>\n                padding: 1rem;<br \/>\n                border-radius: 8px;<br \/>\n                overflow-x: auto;<br \/>\n            }<\/p>\n<div class=\"container\">\n<h1>No fue posible obtener la p\u00e1gina solicitada<\/h1>\n<p>Mensaje del servidor:<\/p>\n<pre><\/pre>\n<p>Verifica tu conexi\u00f3n a Internet o int\u00e9ntalo nuevamente m\u00e1s tarde.<\/p>\n<\/p><\/div>\n<p>    &lt;?php<br \/>\n    exit;<br \/>\n}<\/p>\n<p>$baseInjected = false;<br \/>\n$charset = null;<\/p>\n<p>if ($contentType &amp;&amp; preg_match(&#039;\/charset=([\\w-]+)\/i&#039;, $contentType, $matches)) {<br \/>\n    $charset = strtoupper($matches[1]);<br \/>\n}<\/p>\n<p>if (!$charset &amp;&amp; preg_match(&#039;\/]+charset\\s*=\\s*[\u00ab\\&#8217;]?\\s*([\\w-]+)\/i&#8217;, $html, $matches)) {<br \/>\n    $charset = strtoupper($matches[1]);<br \/>\n}<\/p>\n<p>if ($charset &amp;&amp; $charset !== &#8216;UTF-8&#8217;) {<br \/>\n    $converted = @mb_convert_encoding($html, &#8216;UTF-8&#8217;, $charset);<br \/>\n    if ($converted !== false) {<br \/>\n        $html = $converted;<br \/>\n        $html = preg_replace(<br \/>\n            &#8216;\/(]+charset\\s*=\\s*[\u00ab\\&#8217;])[\\w-]+\/i&#8217;,<br \/>\n            &#8216;$1UTF-8&#8217;,<br \/>\n            $html,<br \/>\n            1<br \/>\n        ) ?? $html;<br \/>\n        $charset = &#8216;UTF-8&#8217;;<br \/>\n    }<br \/>\n} else {<br \/>\n    $charset = &#8216;UTF-8&#8217;;<br \/>\n}<\/p>\n<p>$html = preg_replace_callback(<br \/>\n    &#8216;\/]*)&gt;\/i&#8217;,<br \/>\n    static function (array $matches) use ($baseHref, &amp;$baseInjected) {<br \/>\n        $baseInjected = true;<br \/>\n        return $matches[0] . \u00ab\\n\u00bb . \u00bb;<br \/>\n    },<br \/>\n    $html,<br \/>\n    1<br \/>\n);<\/p>\n<p>if (!$baseInjected) {<br \/>\n    $html = \u00bb . $html;<br \/>\n}<\/p>\n<p>header(&#8216;Content-Type: text\/html; charset=&#8217; . $charset);<br \/>\necho $html;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>true, CURLOPT_FOLLOWLOCATION =&gt; true, CURLOPT_SSL_VERIFYPEER =&gt; true, CURLOPT_SSL_VERIFYHOST =&gt; 2, CURLOPT_USERAGENT =&gt; &#8216;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36&#8217;, CURLOPT_TIMEOUT =&gt; $timeoutSeconds, ]); $response = curl_exec($curl); $curlError = curl_error($curl); $httpCode = (int) curl_getinfo($curl, CURLINFO_HTTP_CODE); $contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: null; curl_close($curl); if ($response !== false &amp;&amp; $httpCode &gt;= 200 &amp;&amp; [&hellip;]<\/p>\n","protected":false},"author":117,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[],"tags":[],"class_list":["post-1654","page","type-page","status-publish","hentry"],"acf":[],"publishpress_future_action":{"enabled":false,"date":"2026-04-25 23:55:30","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/pages\/1654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/comments?post=1654"}],"version-history":[{"count":2,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/pages\/1654\/revisions"}],"predecessor-version":[{"id":1661,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/pages\/1654\/revisions\/1661"}],"wp:attachment":[{"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/media?parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/categories?post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oaxaca.gob.mx\/sep\/wp-json\/wp\/v2\/tags?post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}