[PHP] curl problem
Hi! I try to compile PHP 4.3.4 with curl support on Debian Woody 3.0. I downloaded the http://curl.haxx.se/download/curl-7.11.1.tar.bz2, and compiled it. ./configure was succesfull. But make generate an error: usr/src/install/php-4.3.4/ext/curl/curl.c: In function `curl_free_post': /usr/src/install/php-4.3.4/ext/curl/curl.c:563: warning: passing arg 1 of `curl_formfree' from incompatible pointer type /usr/src/install/php-4.3.4/ext/curl/curl.c: In function `alloc_curl_handle': /usr/src/install/php-4.3.4/ext/curl/curl.c:603: sizeof applied to an incomplete type /usr/src/install/php-4.3.4/ext/curl/curl.c: In function `zif_curl_setopt': /usr/src/install/php-4.3.4/ext/curl/curl.c:838: duplicate case value /usr/src/install/php-4.3.4/ext/curl/curl.c:695: this is the first entry for that value /usr/src/install/php-4.3.4/ext/curl/curl.c:883: warning: passing arg 1 of `curl_formadd' from incompatible pointer type /usr/src/install/php-4.3.4/ext/curl/curl.c:883: warning: passing arg 2 of `curl_formadd' from incompatible pointer type /usr/src/install/php-4.3.4/ext/curl/curl.c:891: warning: passing arg 1 of `curl_formadd' from incompatible pointer type /usr/src/install/php-4.3.4/ext/curl/curl.c:891: warning: passing arg 2 of `curl_formadd' from incompatible pointer type make: *** [ext/curl/curl.lo] Error 1 The problem is that HttpPost structure is not definied. Maybe I'm trying to use not the proper version of curl? Thx in advance, Felho -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Curl Problem
How do you retrieve a session cookie with curl? How do you trick a page to make it think that it was submit from within the domain? www.domainname.com/index.php - www.domainname.com/logincheck.php (validates the from address) Any help would be greatly appreciate. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP cURL problem
I am using PHP 4.0.6 and when I run the following code I get nothing back except the error code 27 and a message saying SSL: couldn't create a context I can run the same thing from the command line and it works perfectly does anyone have any ideas on this? Thanks in advance for any help, Steve Dowell $q_auth = $login.:.$pw; $fp = fopen(c:Scan_files/test_10.xml,w); $ch = curl_init(https://www.foo.com/msp/some_report_list.php;); curl_setopt($ch, CURLOPT_USERPWD,$q_auth); curl_setopt($ch, CURLOPT_FAILONERROR, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_FILE,$fp); curl_setopt($ch, CURLOPT_NOPROGRESS,0); curl_setopt($ch, CURLOPT_VERBOSE,1); $result=curl_exec ($ch); echo curl_errno($ch).br; echo curl_error($ch); curl_close ($ch); echo result=.$result; $fp = fclose; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]