cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Curl on PHP - problem with cookie through proxy

From: Cold Man <slon_at_losei.net>
Date: Wed, 31 Mar 2004 07:00:11 +0000 (UTC)

Daniel Stenberg <daniel-curl <at> haxx.se> writes:

>
> On Wed, 31 Mar 2004, Cold Man wrote:
>
> > I have a script working good without proxy, but when i set CURLOPT_PROXY
> > option with really working http proxy - it fails. Data is posting, but i
> > suppose the problem is with cookie - no information stored and no info
> > POST'ed to server - so server just rejects my request without this cookie...
>
> You "suppose" this is the problem. What kind of evidence points in this
> direction?
>
> Can you show us some network traces, response headers or similar? Repeating
> the problem with the command line tool and using --trace-ascii or --trace is
> a great way.
>
> As always, also include details on what libcurl version and what operating
> system you're using.
>

Headers returned with CURLOPT_HEADER, 1 (without proxy):
HTTP/1.1 302 Moved Date: Wed, 31 Mar 2004 06:03:49 GMT Server: Apache
Set-Cookie: id_cli=FA__5403021358598; path=/ Set-Cookie:
id_ses=426141011263XFA__5403021358598; path=/ location: https://site09.tru.
biz/cgi-bin/cyber/reg_in.cgi?
id=FA__5403021358598&sesid=426141011263XFA__5403021358598&lang=en
Transfer-Encoding: chunked Content-Type: text/plain; charset=cp1252 HTTP/1.1 200
OK Date: Wed, 31 Mar 2004 06:04:27 GMT Server: Apache Transfer-Encoding: chunked
Content-Type: text/html; charset=cp1252

Headers returned with proxy:
HTTP/1.1 200 OK Date: Wed, 31 Mar 2004 06:37:33 GMT Server: Apache
Transfer-Encoding: chunked Content-Type: text/html; charset=cp1252 and nothing
more :( Just no operation with "302 Moved".

Operation sys. - Mandrake 9.* - will know for sure when server's admin will be
online. Don't know the version of curl too :( Will post as soon as i get it.

I think it's my problem, not CURL's one :)... But i can't understand what i do
wrong: without _PROXY it is ok, but nothing works with it :( I thought the other
server blocks all proxies (VIA) but i succesfully logged in through browser with
the same proxy as in CURL+PHP.
Received on 2004-03-31