cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: get error

From: Jonathan Wakely <cow_at_compsoc.man.ac.uk>
Date: Fri, 24 May 2002 16:08:12 +0100

On Fri, May 24, 2002 at 08:41:26PM +0800, Li Zhao wrote:

> yea, OK
> just by adding user_agent in header.
>
> 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?
 
All you need is a CGI script like this:

#!/bin/sh
echo "Content-type: text/plain"
echo
echo "User-Agent: $HTTP_USER_AGENT"

and then point your browser at it.

http://www.compsoc.man.ac.uk/~cow/cgi-bin/showhdr.cgi

The other headers are in variables named by capitalising them and
prepending HTTP_, so for instance, the Referer header (note incorrect
spelling) is in HTTP_REFERER

-- 
Message terminated with signal 11, SIGFAULT
_______________________________________________________________
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