cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: using curl via proxy server

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 Jun 2003 14:51:01 +0200 (CEST)

On Sat, 14 Jun 2003, Ajay Doshi wrote:

> I am trying to use curl through a proxy server. The proxy server requires a
> username and password. This is the command I am using:
>
> curl -U myusername:mypassword -x webproxy:8080 http://www.google.com/
>
> However, I am getting this error:
>
> The requested item could not be loaded by the proxy.

This indicates that your proxy rejects this request for some reason.

> Proxy server is unable to locate the server: www.netscape.com.

When you try to access google?

> Does anyone know why this is happening and/or what I can do to fix it?

Is your proxy really a HTTP proxy? Does it work properly when you use it with
your various browsers?

When it fails, what headers does it return?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-16