cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl error 7 and -L option

From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Mon, 21 Feb 2000 23:32:22 +0100 (MET)

On Thu, 17 Feb 2000, eddj wrote:

> If I try with the -L option:

> * Follows Location: to new URL:
> 'http://some.site.it/another-url.asp?param1=val1&param2=val2&param3=val3

> curl: (7) Connection refused

I can only agree with the previous reply. This is not curl's fault, it is
obviously a server restriction.

*However* curl has its oddities in situations like this. When you use curl to
POST and follow a location, it will POST to the location it follows to as
well. It may not be want you want (if anyone has a nice way of specify
another behaviour on the command line, I'd be interested).

Try that second URL manually with a curl invoke, does it work then?

-- 
   Daniel Stenberg - http://www.contactor.se/~dast - +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-02-21