cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: get error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 24 May 2002 14:49:54 +0200 (MET DST)

On Fri, 24 May 2002, Li Zhao wrote:

> yea, OK just by adding user_agent in header.

Ah, yes, some sites check that field and act differently depending on what
browser it thinks you are!

> there'are some urls that i can access using IE but curl. are there any free
> tools that can get the header information sent by IE?

Wipe up your own web server and point IE to it, check what the request looks
like (there's a web server included in the curl source archive, for the
test suite, it compiles and builds on most unix systems but making it build
on windows shouldn't be that tricky).

I believe 'netcat' can do it for you too:
http://www.atstake.com/research/tools/index.html#network_utilities

Another approach is to just get a network analyzer (like ethereal) and check
the network traffic to see what the browser sends away when issuing requests
to servers.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-05-24