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

curl-and-php

RE: curl weird behavior

From: Frank <frank_at_optimarc.com>
Date: Wed, 22 Sep 2004 09:48:01 +1000

Hi Daniel ..

If I run my script with Verbose option I get the following ouput the
first time (no cookie file created) .. this time the script doesn't
download the file.

* Re-using existing connection! (#0)
* Connected to same host port 443
> POST /reports/text_reports/click-data__12804__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Content-Length: 48
Content-Type: application/x-www-form-urlencoded

username=relevantresults&password=hotly89intents* Connection died,
retrying a fresh connect
* Closing connection #0
* Issue another request to this URL:
'https://smc2.sitematch.overture.com/reports/text_reports/click-data__12
804__2004-09-22.txt'
* About to connect() to smc2.sitematch.overture.com port 443
* Connected to smc2.inktomi.com (66.196.95.39) port 443
* successfully set certificate verify locations:
* CAfile: /usr/share/curl/curl-ca-bundle-7.11.2.crt
  CApath: none
* SSL re-using session ID
* SSL connection using EDH-RSA-DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=California/L=Sunnyvale/O=Overture Services
Inc./OU=Overture Site Match/OU=Terms of use at www.verisign.com/rpa
(c)00/CN=smc2.sitematch.overture.com
* start date: 2004-03-02 00:00:00 GMT
* expire date: 2005-03-02 23:59:59 GMT
* common name: smc2.sitematch.overture.com (matched)
* issuer: /O=VeriSign Trust Network/OU=VeriSign, Inc./OU=VeriSign
International Server CA - Class 3/OU=www.verisign.com/CPS Incorp.by Ref.
LIABILITY LTD.(c)97 VeriSign
* SSL certificate verify ok.
> POST /reports/text_reports/click-data__12804__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Content-Length: 48
Content-Type: application/x-www-form-urlencoded

username=relevantresults&password=hotly89intents< HTTP/1.1 302 Found
< Date: Tue, 21 Sep 2004 23:43:19 GMT
< Server: Apache/1.3.29
< Location:
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__12
804__2004-09-22.txt
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=iso-8859-1
< Expires: Tue, 21 Sep 2004 23:43:19 GMT
* Ignoring the response-body
* Connection #0 left intact
* Issue another request to this URL:
'https://smc2.sitematch.overture.com/session/login.html?on_finish=%2Frep
orts%2Ftext_reports%2Fclick-data__12804__2004-09-22.txt'
* Disables POST, goes with GET
* Re-using existing connection! (#0)
* Connected to same host port 443
> GET
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__12
804__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*

< HTTP/1.1 200 OK
< Date: Tue, 21 Sep 2004 23:43:19 GMT
< Server: Apache/1.3.29
* Added cookie SMC_SESSION="00000000000000000000000000000000" for domain
smc2.sitematch.overture.com, path /, expire 0
< Set-Cookie: SMC_SESSION=00000000000000000000000000000000;
domain=smc2.sitematch.overture.com; path=/; secure
< Pragma: no-cache
< Cache-control: no-cache
< Transfer-Encoding: chunked
< Content-Type: text/html
< Expires: Tue, 21 Sep 2004 23:43:19 GMT
* Connection #0 left intact
* Re-using existing connection! (#0)
* Connected to same host port 443
> GET /reports/text_reports/click-data__12862__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Cookie: SMC_SESSION=00000000000000000000000000000000

< HTTP/1.1 302 Found
< Date: Tue, 21 Sep 2004 23:43:20 GMT
< Server: Apache/1.3.29
< Location:
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__12
862__2004-09-22.txt
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=iso-8859-1
< Expires: Tue, 21 Sep 2004 23:43:20 GMT
* Ignoring the response-body
* Connection #0 left intact
* Issue another request to this URL:
'https://smc2.sitematch.overture.com/session/login.html?on_finish=%2Frep
orts%2Ftext_reports%2Fclick-data__12862__2004-09-22.txt'
* Re-using existing connection! (#0)
* Connected to same host port 443
> GET
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__12
862__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Cookie: SMC_SESSION=00000000000000000000000000000000

< HTTP/1.1 200 OK
< Date: Tue, 21 Sep 2004 23:43:20 GMT
< Server: Apache/1.3.29
* Replaced cookie SMC_SESSION="00000000000000000000000000000000" for
domain smc2.sitematch.overture.com, path /, expire 0
< Set-Cookie: SMC_SESSION=00000000000000000000000000000000;
domain=smc2.sitematch.overture.com; path=/; secure
< Pragma: no-cache
< Cache-control: no-cache
< Transfer-Encoding: chunked
< Content-Type: text/html
< Expires: Tue, 21 Sep 2004 23:43:20 GMT
* Connection #0 left intact
* Re-using existing connection! (#0)
* Connected to same host port 443
> GET /reports/text_reports/click-data__7029__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Cookie: SMC_SESSION=00000000000000000000000000000000

< HTTP/1.1 302 Found
< Date: Tue, 21 Sep 2004 23:43:21 GMT
< Server: Apache/1.3.29
< Location:
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__70
29__2004-09-22.txt
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=iso-8859-1
< Expires: Tue, 21 Sep 2004 23:43:21 GMT
* Ignoring the response-body
* Connection #0 left intact
* Issue another request to this URL:
'https://smc2.sitematch.overture.com/session/login.html?on_finish=%2Frep
orts%2Ftext_reports%2Fclick-data__7029__2004-09-22.txt'
* Re-using existing connection! (#0)
* Connected to same host port 443
> GET
/session/login.html?on_finish=%2Freports%2Ftext_reports%2Fclick-data__70
29__2004-09-22.txt HTTP/1.1
Host: smc2.sitematch.overture.com
Pragma: no-cache
Accept: */*
Cookie: SMC_SESSION=00000000000000000000000000000000

< HTTP/1.1 200 OK
< Date: Tue, 21 Sep 2004 23:43:21 GMT
< Server: Apache/1.3.29
* Replaced cookie SMC_SESSION="00000000000000000000000000000000" for
domain smc2.sitematch.overture.com, path /, expire 0
< Set-Cookie: SMC_SESSION=00000000000000000000000000000000;
domain=smc2.sitematch.overture.com; path=/; secure
< Pragma: no-cache
< Cache-control: no-cache
< Transfer-Encoding: chunked
< Content-Type: text/html
< Expires: Tue, 21 Sep 2004 23:43:21 GMT
* Connection #0 left intact
* Closing connection #0

cheers

frank

-----Original Message-----
From: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Tuesday, 21 September 2004 5:00 PM
To: using curl with PHP
Subject: Re: curl weird behavior

On Tue, 21 Sep 2004, Frank wrote:

> any ideas what am I doing wrong?

If you could show us what headers your requests are sending and what
headers
you get back in the responses we'll have a much bigger chance to help
you
analyze this.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-22