Jump to content

curl_exec() causing browser asking to save php file


zell11

Recommended Posts

 

    $ch = curl_init();

 

    curl_setopt ( $ch, CURLOPT_URL, $this->config->get( "Configuration.host" ) );

    curl_setopt ( $ch, CURLOPT_POST, true );

    curl_setopt ( $ch, CURLOPT_POSTFIELDS, $xmldoc->getDocument() );

    curl_setopt ( $ch, CURLOPT_HTTPHEADER, array('Expect: ') );

    // Save the response in the response variable

    //

    $this->response = curl_exec($ch);

    $this->errno = curl_errno ($ch);

    $this->err_str = curl_error ($ch);

    $this->curl_getinfo = curl_getinfo($ch);

 

 

sorry bout the long time before i replied

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.