On Wed, 10 Jan 2007 09:04:49 -0500, Jim Vincent <[EMAIL PROTECTED]
.com> wrote:

>One option you can do is get the wget utility for Windows (see
>http://www.gnu.org/software/wget/ ).  It will allow you to get content f
rom
>https (ssl) sites.   For instance, I have a little ditty that I use to g
rab
>the current WAN IP address assigned on my home wireless router (which us
es
>https) via:
>
>wget https://192.168.1.1/Status_Router.asp --no-check-certificate
>--user=vincenj --password=xxxxxxxx --connect-timeout=2 --tries=1

>
>Works like a champ.

wget definitely works. Thanks!

I can login via:

wget https://www-304.ibm.com/pkmslogin.form\
 --post-data 'login-form-type=pwd&username=ackerman&password=
xxxxxxxx&x=43&y=12'\
 --no-check-certificate --save-cookies mycookies.txt --keep-session-cooki
es\
 --load-cookies mycookies.txt --directory-prefix temp

This always gives me a file with an error message "You are already signed
 in.  Please return to the 
profile summary to continue." The login nevertheless works. If I leave ou
t this login step, nothing 
else works. I tried to figure out why by tracing the HTML headers but it 
made my head swim. So 
many redirects and so many cookies! Ugh!

Further steps:

#SERVICELINK (Needed!)
wget 'https://www-304.ibm.com/jct03004c/ibmlink/servicelink/servicelinkPa
ge.jsp?
lc=en&cc=US'\
 --no-check-certificate --save-cookies mycookies.txt --keep-session-cooki
es\
 --load-cookies mycookies.txt --directory-prefix temp

#LIST ETR RECORDS
wget 'https://www-304.ibm.com/jct03004c/ibmlink/etr/etrRouting.jsp'\
 --post-data\
'lc=en&cc=US&navItem=etrListRequest.jsp&etrlist=ACCT&
amp;userKeyword=SERVICE&custno=&srchar
g=&SubmitListRequest.x=40&SubmitListRequest.y=40'\
 --no-check-certificate --save-cookies mycookies.txt --keep-session-cooki
es\
 --load-cookies mycookies.txt -O temp/etrRouting.jsp

At this point I had to resort to grep and sed to break up the list and do
wnload  the individual 
ETRs. I don't think that's going to work on a PC. (I did this in the Unix
 part of my Mac.) Even the 
"printable" versions are still HTML.

A fun programming exercise, but probably not too practical.

Reply via email to