Domanda

Ok, questo è davvero strano e non ho idea di cosa stia succedendo qui. Sto usando WordPress 3.0.1, creo un nuovo post sul blog, dico un titolo, incolla il seguente codice nel post del blog e hits Save Draft.

<code lang="php">
// Init curl
$request = curl_init();

// Set request options
curl_setopt_array($request, array
(
    CURLOPT_URL => 'https://www.sandbox.paypal.com/cgi-bin/webscr',
    CURLOPT_POST => TRUE,
    CURLOPT_POSTFIELDS => http_build_query(array
        (
            'cmd' => '_notify-synch',
            'tx' => $_GET['tx'],
            'at' => $your_pdt_identity_token,
        )),
    CURLOPT_RETURNTRANSFER => TRUE,
    CURLOPT_HEADER => FALSE,
    CURLOPT_SSL_VERIFYPEER => TRUE,
    CURLOPT_CAINFO => 'cacert.pem',
));

// Execute and get the response and status code
$response = curl_exec($request);
$status   = curl_getinfo($request, CURLINFO_HTTP_CODE);

// Close
curl_close($request);
</code>

Solo un esempio di codice nella mia testa, ma sembra che WordPress la pensa diversamente, perché ho raggiunto il salva

Servizio temporaneamente non disponibile

Il server non è temporaneamente in grado di soddisfare la richiesta a causa di tempi di fermo di manutenzione o problemi di capacità. Per favore riprova più tardi.

Cosa sta succedendo al mondo qui ??

Nessuna soluzione corretta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top