cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Challenge to get curl fetching from this site ....

From: WILSON, Nick <nick.a.wilson_at_baesystems.com>
Date: Thu, 31 Aug 2000 13:59:10 +0930

I can get a different response back from this server that no longer keeps
the Connection: Keep-alive there, using
curl command,
curl -v -i -H "Connection: close" -A "Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT 5.0)" http://www.emailcash.com.au

but still no body in the http message ?

Is there anything I'm missing ? a host or Referrer perhaps ?

Is it possible that this site has decided that if you don't have the ability
to
keep a persistent connection then stuff you, we are not going to let you
view our site ?

And no I'm not doing anything dumb to try and get free cash, it's just
that this site couldn't be fetched from using php with curl and I was
wondering why ...

> -----Original Message-----
> From: Daniel Stenberg [mailto:daniel_at_haxx.se]
> Sent: Tuesday, 29 August 2000 16:55
> To: 'curl_at_contactor.se'
> Subject: Re: Custom headers and HTTP 1.0
>
>
> On Tue, 29 Aug 2000, WILSON, Nick wrote:
>
> > Is there any option in curl to use HTTP 1.0 protocol instead of what
> > appears to be the default of 1.1 ?
>
> Curl always use HTTP 1.0. At least if you're speaking about
> the version
> string it sends with its requests. Some of the stuff curl uses are 1.1
> features, although it still uses the 1.0 protocol specifier.
>
> > I have a site that uses a header 'Connection: Keep-alive' which is
> > causing me hassles, and I've tried sending a -H
> 'Connection: close' to
> > force it to use HTTP1.0 but it still sends me 1.1 code .... ?
>
> You should be able to use that.
>
> RFC 2616 section 14.10, page 116:
>
> HTTP/1.1 defines the "close" connection option for the sender to
> signal that the connection will be closed after completion of the
> response. For example,
>
> Connection: close
>
> in either the request or the response header fields indicates that
> the connection SHOULD NOT be considered `persistent' (section 8.1)
> after the current request/response is complete.
>
> --
> Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
> ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
>
>
Received on 2000-08-31