curl-and-php
Query Remote Server via ISA Proxy Server
Date: Wed, 1 Nov 2006 10:25:03 -0500
Hi
I had sent an image of the output earlier. I noticed it was not visible.
Hence I am sending the same as text
HTTP code:0 Received HTTP Code 502 from proxy after Connect – Error No.56
Array
(
[url] => http://3w.unocha.org/WhoWhatWhere/transfer.php
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0
[redirect_time] => 0
)
Thanks
Best
Raji
Rajalakshmi Murali
Application Developer
Field Information Services Unit
United Nations Office for the Coordination of Humanitarian Affairs
New York
Tel: +1 917-367-2177
E-mail: murali_at_un.org
curl-and-php-requ
est_at_cool.haxx.se
Sent by: To
curl-and-php-boun curl-and-php_at_cool.haxx.se
ces_at_cool.haxx.se cc
Subject
01/11/2006 06:00 curl-and-php Digest, Vol 15, Issue
AM 1
Please respond to
curl-and-php_at_cool
.haxx.se
Send curl-and-php mailing list submissions to
curl-and-php_at_cool.haxx.se
To subscribe or unsubscribe via the World Wide Web, visit
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
or, via email, send a message with subject or body 'help' to
curl-and-php-request_at_cool.haxx.se
You can reach the person managing the list at
curl-and-php-owner_at_cool.haxx.se
When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-and-php digest..."
Today's Topics:
1. response code problem (Daniel Stenberg)
2. PHP/CURL Compilation problem (Philippe BEAU)
3. Re: PHP/CURL Compilation problem (Daniel Stenberg)
----------------------------------------------------------------------
Message: 1
Date: Tue, 31 Oct 2006 22:55:06 +0100 (CET)
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: response code problem
To: curl with PHP <curl-and-php_at_cool.haxx.se>
Message-ID: <Pine.LNX.4.64.0610312249170.11364_at_yvahk3.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 31 Oct 2006, Rajalakshmi Murali wrote:
You should seriously read through our mailing list etiquette:
http://curl.haxx.se/mail/etiquette.html - you violated several of the items
mentioned there.
> I have an option within my web application, where I accept the Remote
Host
> URL or IP address to connect, from the user and use curl to connect and
> process data. If there is no proxy server then the connection and the
data
> exchange goes through fine.
>
> When there is an intermediate ISA Proxy Server to connect to the
internet,
> the user has to specify the Proxy Server address, windows login info.
>
> The code I use when there is a proxy server is as follows:-
> curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL,1);
And your proxy server allows this? What response headers do you get back
from
your proxy?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html ------------------------------ Message: 2 Date: Wed, 1 Nov 2006 05:49:17 +0100 (CET) From: "Philippe BEAU" <philippe_at_choup.net> Subject: PHP/CURL Compilation problem To: curl-and-php_at_cool.haxx.se Message-ID: <53105.86.209.72.168.1162356557.squirrel_at_www.choup.net> Content-Type: text/plain;charset=iso-8859-1 Hello All, I would like to compile cURL support with PHP 4.4.2. I take a recent version of curl/libcurl (the latest) it compile well. when i compil i have this message : /src/php-4.4.2/ext/curl/curl.c: In function `zm_startup_curl': /src/php-4.4.2/ext/curl/curl.c:207: `CURLOPT_FTPASCII' undeclared (first use in this function) /src/php-4.4.2/ext/curl/curl.c:207: (Each undeclared identifier is reported only once /src/php-4.4.2/ext/curl/curl.c:207: for each function it appears in.) /src/php-4.4.2/ext/curl/curl.c:245: `CURLOPT_PASSWDFUNCTION' undeclared (first use in this function) All the CURL file on the harddrive have been deleted before installing new libs. i try from RPM, rebuild RPM, of From Source. Same errors ! Also, i found a solution, but ... for CURLOPT_FTPASCII : in curl sources : lib/url.c case CURLOPT_TRANSFERTEXT: /* * This option was previously named 'FTPASCII'. Renamed to work with * more protocols than merely FTP. * * Transfer using ASCII (instead of BINARY). */ data->set.prefer_ascii = (bool)(0 != va_arg(param, long)); break; -> is CURLOPT_FTPASCII is renamed by CURLOPT_TRANSFERTEXT ? -> is CURLOPT_PASSWDFUNCTION is misdeclared in lib (not present in .h file ?) that PHP don't find it well ? If i comment in curl.c the 2 lines concerned, it's work well ... Philippe, ------------------------------ Message: 3 Date: Wed, 1 Nov 2006 09:15:12 +0100 (CET) From: Daniel Stenberg <daniel_at_haxx.se> Subject: Re: PHP/CURL Compilation problem To: curl with PHP <curl-and-php_at_cool.haxx.se> Message-ID: <Pine.LNX.4.64.0611010912450.11364_at_yvahk3.pbagnpgbe.fr> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Wed, 1 Nov 2006, Philippe BEAU wrote: > I would like to compile cURL support with PHP 4.4.2. I take a recent version > of curl/libcurl (the latest) it compile well. > > when i compil i have this message : > > /src/php-4.4.2/ext/curl/curl.c:207: `CURLOPT_FTPASCII' undeclared > /src/php-4.4.2/ext/curl/curl.c:245: `CURLOPT_PASSWDFUNCTION' undeclared Right, these symbols have been erased from libcurl now since they've been obsolete and deprecated for many years. You should probably: 1 - use a more recent PHP that doesn't use these symbols 2 - modify the PHP/CURL source code to use the correct symbols and mail the PHP team a patch or possibly: 3 - if there is none, report it as a bug to the PHP team 4 - use an older libcurl release where they were still present -- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html ------------------------------ _______________________________________________ curl-and-php mailing list curl-and-php_at_cool.haxx.se http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php End of curl-and-php Digest, Vol 15, Issue 1 ******************************************* _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2006-11-01