zell11 Posted November 16, 2007 Share Posted November 16, 2007 Hey there, I am having a problem when I am using curl_exec. When i try and send a request using it all it does is come up and page asking me to save the php file that was user to call it. Does anyone know what could cause this? Thanks Quote Link to comment Share on other sites More sharing options...
ainoy31 Posted November 16, 2007 Share Posted November 16, 2007 Can we see the curl part your code? Quote Link to comment Share on other sites More sharing options...
zell11 Posted November 22, 2007 Author Share Posted November 22, 2007 $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 Quote Link to comment Share on other sites More sharing options...
Azu Posted November 22, 2007 Share Posted November 22, 2007 Trying setting the mimetype to text/html? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.