cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl usage with https

From: Ravi Malghan <rmalghan_at_yahoo.com>
Date: Wed, 3 May 2006 17:17:01 -0700 (PDT)

Dan: thanks for your input.

When I point my browser to
https://199.189.2.132/alerts/report/report-alert-99606.xml?attack_id=99606&output=xml,
it brings up a page that asks for username/password,
click the Submit button and the xml file shows up on
my browser.

But in the case of curl it goes to the main page which
is https://199.11.2.132/status/is. Thatz the reason I
was thinking that I am not instructing curl correctly
to go to
alerts/report/report-alert-99606.xml?attack_id=99606&output=xml
after logging in.

Thanks
Ravi
--- Dan Fandrich <dan_at_coneharvesters.com> wrote:

> 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
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on 2006-05-04