note 50855 deleted from ref.curl by nlopess

From: Date: Fri, 11 Mar 2005 19:38:05 +0000
Subject: note 50855 deleted from ref.curl by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86266@lists.php.net to get a copy of this message
Note Submitter: Nick - Interviewmyass.co.uk ---- <?php $url = "http://www.example.com/login.asp"; $params = "loginPWD=password&loginUID=cURLBOT"; $user_agent = "cURL Bot v0.01 beta"; $ch = curl_init(); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$params); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, '_cookiejar/cookiejar.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, '_cookiejar/cookiejar.txt'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // this line makes it work under https $result=curl_exec ($ch); curl_close ($ch); ?> I am having problems on different servers. This script, and all curl scripts work perfectly well on "libcurl/7.11.1 OpenSSL/0.9.7d zlib/1.1.4" but not on "libcurl/7.12.0 OpenSSL/0.9.7a zlib/1.1.4". Is there anything I should know about this. The cURL site is pathetic for documentation.

« previous php.notes (#86266) next »