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

curl-and-php

Re: CURL : question

From: Emmanuel Forgues <Emmanuel.Forgues_at_e-forgues.com>
Date: Thu, 17 Nov 2005 15:52:25 +0100

Dear Daniel,

I have the following message on my HTTP server log (error log)

< HTTP/1.1 401 Authentication Required
< Date: Mon, 14 Nov 2005 21:31:55 GMT
< Content-Length: 257
< Content-Type: text/html
< Connection: close
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="blahblah"
* Closing connection #0
* About to connect() to 10.10.01.1 port 8042
* Trying 10.10.01.1... * connected
* Connected to 10.10.01.1 (10.10.01.1) port 8042
* Server auth using Basic with user 'admin'
> GET <URL requested> HTTP/1.1
Authorization: Basic YTlkyuaW460Q2FjxjFDU=
Host: 10.10.01.1:8042
Accept: */*

And some time I have (with the same result) :

< HTTP/1.1 200 Ok
< date: Mon Nov 14 22:56:51 CET 2005
* Connection #0 to host 10.10.01.1 left intact
* Closing connection #0
* About to connect() to 10.10.01.1 port 8042
* Trying 10.10.01.1... * connected
* Connected to 10.10.01.1 (10.10.01.1) port 8042

any idea why my "code" doens't works ?

- the connexion on the equipment works, the authentication is
on Basic Mode. but why I cannot get the data after ?

What is this message ? :
* Connection #0 to host 10.10.01.1 left intact
* Closing connection #0

Best Regards,
Emmanuel

> On Mon, 14 Nov 2005, Emmanuel Forgues wrote:
>
>> With this code the result is : Code 200 Ok
>> but no data after ...
>
>
> Nothing at all? Does a browser get data when doing the same request? If
> you use LiveHTTPHeaders, see what the browser does and try to mimic that.
>
>> If I trying the url used directly, after authentication I have the web
>> Page with the data.
>
>
> You mean you retry the exact same request a second time and then it works?
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-17