cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems and infos

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 22 Nov 2008 12:43:30 -0800

On Sat, Nov 22, 2008 at 06:39:40PM +0100, Massimiliano Cuttini wrote:
> The script:
>
> * logon
> * get the session
> * perform operations correctly (i already developed more than 18 commands).
>
> However yesterday i found a operation (simple POST on a page) that i cannot
> perform.
> I see that i get "CURL: Empty reply from server (52)".

It it works with a browser but not curl, then there must be something done
differently between the two. It's theoretically possible that the remote
site is doing something more sophisticated than checking the User-Agent
to determin whether to let a request through or not, but it's unlikely.

Try comparing the log output you see from a browser request using Wireshark
or LiveHTTPHeaders or equivalent with the log output you see doing the
request with curl (after enabling debugging, of course). Once you find
the difference, you can match the curl request.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-11-22