cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl usage with https

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 3 May 2006 11:21:53 -0700

On Wed, May 03, 2006 at 11:07:45AM -0700, Ravi Malghan wrote:
> Dan: the L option and also the -b cookie option
> together kind of help me get closer to the solution.
> Eventhough I am asking curl to fetch
> "/alerts/report/report-alert-99606.xml?attack_id=99606&output=xml"

I suspect you're not...

> from the web server, it always returns
> https://ipaddress/status/is. In the trace eventhough I
> see HTTP/1.1 302 Found for
> /alerts/report/report-alert-99606.xm..., it still does
> a get for /status/is
>
> ==========================================
> curl -o report.html -k -v -b newcookies.txt -L -d
> "/alerts/report/report-alert-99606.xml?attack_id=99606&output=xml"
> "https://199.189.2.132/index?username=user1&password=pass1&Submit=Login"

Your -d option looks pretty suspicious. You're setting a parameter called
"/alerts/report/report-alert-99606.xml?attack_id" to the value "99606" which
is almost guaranteed to not be what you want.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-05-03