curl-users
Re: Problem connecting to password protected page
Date: Tue, 25 Nov 2003 06:49:51 -0800
I still have to authenticate though.. that is the problem.
Remember I go from the first URL (audioarchives) to
members.premiereinteractive.com where I have to authenticate with an
HTML form. I then go back to audioarchives. It loops me around and I do
not know how to handle the form-based authentication and the looping
back to my starting point.
On Nov 25, 2003, at 3:46 AM, Mayuresh Kadu wrote:
> Gary,
>
> The following can be done but will require a small script to be
> written.
> First get down the http://www.philhendrieshow.com/audioarchives.html
> file
> (which curl can do - peice of cake !!) but then use "grep" to grab the
> urls
> of your interest and then use curl to download them.
>
> I used to use wget to do this (though wget didnt have as cool features
> as
> curl), unfortunately i cant seem to find the script.
>
> Good luck ..
>
>
> - Mayuresh
>
>
> Gary Danko said:
>> OS Version:
>> Darwin baracus.local 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24
>> 15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC Power Macintosh
>> powerpc
>>
>> cURL Version:
>> [baracus:~] gdanko% curl -V
>> curl 7.10.2 (powerpc-apple-darwin7.0) libcurl/7.10.2 OpenSSL/0.9.7b
>> zlib/1.1.4
>>
>> Here's my situation. I subscribe to the Phil Hendrie Show backstage
>> pass, where I can listen to 30 days worth of archives in WM/Real/MP3
>> format. I have decided that since I am paying, I want to save them to
>> disk. So I've written a Perl script to parse the stream.asf file and
>> download all the mms:// links in it to disk with a date stamp. Blah
>> blah blah. Anyway..
>>
>> Since it's a subscription I need to login in order to listen. These
>> are
>> the steps taken, it's convoluted:
>>
>> 1) Navigate to http://www.philhendrieshow.com/audioarchives.html
>> 2) Click on either a "Win Media" or "Real Audio" link
>> 3) You're taken to http://members.premiereinteractive.com to login,
>> except it's not normal httpd authentication, it's done via http form.
>> 4) You enter your login name (email address) and password into the
>> form
>> and click submit
>> 5) Upon successful authentication you're taken back to
>> http://www.philhendrieshow.com/audioarchives.html
>> 6) You can now click on a "Win Media" or "Real Audio" link and a
>> stream.asf or stream.ram file is downloaded.
>>
>> Can something like this be accomplished with cURL? I'd love to figure
>> it out so I can completely automate this process and cron it.
>>
>> Any help is appreciated!
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: SF.net Giveback Program.
>> Does SourceForge.net help you be more productive? Does it
>> help you create better code? SHARE THE LOVE, and help us help
>> YOU! Click Here: http://sourceforge.net/donate/
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-25