help!!!
Hello all: Here is the scenario... I am trying to d/l a webpage, but the issue is there are two authentication challenges. The first is from the web server, so I wanted to use something like wget --http-user=user --http-passwd=password http://website.html , once authenticated with the web server therein an applicationauthentication via post so I found, wget --http-post="login=userpassword=pw" http://www.yourclient.com/somepage.htmlon the gnu siteto be an option.Is there a way I canconcatenate bothchallenges into one string whentrying to d/l the page? any help would be greatly appreciated. ps Jorge: islist receiving this email? or am I wasting sending to the wrong address. Many thanks, Richard Emanilov [EMAIL PROTECTED]
RE: help!!!
/usr/local/bin/wget -dv --post-data=login=loginpassword=password https://login:[EMAIL PROTECTED]:8443/ft DEBUG output created by Wget 1.9.1 on linux-gnu. --17:11:35-- https://login:[EMAIL PROTECTED]:8443/ft = `ft' Connecting to ip... connected. Created socket 3. Releasing 0x8123110 (new refcount 0). Deleting unused 0x8123110. ---request begin--- POST /ft HTTP/1.0 User-Agent: Wget/1.9.1 Host: ip:8443 Accept: */* Connection: Keep-Alive Authorization: Basic cm9zZW46Y3VybHlx Content-Type: application/x-www-form-urlencoded Content-Length: 30 [POST data: login=loginpassword=passwd] ---request end--- HTTP request sent, awaiting response... HTTP/1.1 302 Moved Temporarily Location: https://login:[EMAIL PROTECTED]:8443/ft Content-Length: 0 Date: Mon, 21 Mar 2005 22:11:35 GMT Server: Apache-Coyote/1.1 Connection: Keep-Alive Registered fd 3 for persistent reuse. Location: https://ip:8443/ft/ [following] Closing fd 3 Releasing 0x81359a0 (new refcount 0). Deleting unused 0x81359a0. Invalidating fd 3 from further reuse. --17:11:35-- https://ip:8443/ft/ = `index.html' Connecting to ip:8443... connected. Created socket 3. Releasing 0x8118718 (new refcount 0). Deleting unused 0x8118718. ---request begin--- GET /ft/ HTTP/1.0 User-Agent: Wget/1.9.1 Host: ip:8443 Accept: */* Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... HTTP/1.1 401 Unauthorized WWW-Authenticate: Basic realm=Portfolio Viewer Content-Type: text/html;charset=ISO-8859-1 Content-Language: en-US Date: Mon, 21 Mar 2005 22:11:35 GMT Server: Apache-Coyote/1.1 Connection: close Closing fd 3 Authorization failed. Again, I'd like to thank you guys so much, made some progress, any og you guys familiar with this issue? -Original Message- From: Mauro Tortonesi [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 4:11 PM To: Richard Emanilov Cc: Tony Lewis; wget@sunsite.dk; [EMAIL PROTECTED] Subject: Re: help!!! On Monday 21 March 2005 02:22 pm, Richard Emanilov wrote: Guys, Thanks so much for your help, when running wget --http-user=login --http-passwd=passwd --post-data=login=loginpassword=passwd https://site With version 1.9.1, I get the error message Site: Unsupported scheme. have you compiled wget with SSL support? -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi University of Ferrara - Dept. of Eng.http://www.ing.unife.it Institute of Human Machine Cognition http://www.ihmc.us Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it
RE: help!!!
I'm not longer seeing the 401 error, I am now seeing HTTP request sent, awaiting response... HTTP/1.1 501 Not Implemented I need to end this nightmare! Richard Emanilov [EMAIL PROTECTED] -Original Message- From: Richard Emanilov Sent: Monday, March 21, 2005 5:17 PM To: 'Mauro Tortonesi' Cc: Tony Lewis; wget@sunsite.dk; [EMAIL PROTECTED] Subject: RE: help!!! /usr/local/bin/wget -dv --post-data=login=loginpassword=password https://login:[EMAIL PROTECTED]:8443/ft DEBUG output created by Wget 1.9.1 on linux-gnu. --17:11:35-- https://login:[EMAIL PROTECTED]:8443/ft = `ft' Connecting to ip... connected. Created socket 3. Releasing 0x8123110 (new refcount 0). Deleting unused 0x8123110. ---request begin--- POST /ft HTTP/1.0 User-Agent: Wget/1.9.1 Host: ip:8443 Accept: */* Connection: Keep-Alive Authorization: Basic cm9zZW46Y3VybHlx Content-Type: application/x-www-form-urlencoded Content-Length: 30 [POST data: login=loginpassword=passwd] ---request end--- HTTP request sent, awaiting response... HTTP/1.1 302 Moved Temporarily Location: https://login:[EMAIL PROTECTED]:8443/ft Content-Length: 0 Date: Mon, 21 Mar 2005 22:11:35 GMT Server: Apache-Coyote/1.1 Connection: Keep-Alive Registered fd 3 for persistent reuse. Location: https://ip:8443/ft/ [following] Closing fd 3 Releasing 0x81359a0 (new refcount 0). Deleting unused 0x81359a0. Invalidating fd 3 from further reuse. --17:11:35-- https://ip:8443/ft/ = `index.html' Connecting to ip:8443... connected. Created socket 3. Releasing 0x8118718 (new refcount 0). Deleting unused 0x8118718. ---request begin--- GET /ft/ HTTP/1.0 User-Agent: Wget/1.9.1 Host: ip:8443 Accept: */* Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... HTTP/1.1 401 Unauthorized WWW-Authenticate: Basic realm=Portfolio Viewer Content-Type: text/html;charset=ISO-8859-1 Content-Language: en-US Date: Mon, 21 Mar 2005 22:11:35 GMT Server: Apache-Coyote/1.1 Connection: close Closing fd 3 Authorization failed. Again, I'd like to thank you guys so much, made some progress, any og you guys familiar with this issue? -Original Message- From: Mauro Tortonesi [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 4:11 PM To: Richard Emanilov Cc: Tony Lewis; wget@sunsite.dk; [EMAIL PROTECTED] Subject: Re: help!!! On Monday 21 March 2005 02:22 pm, Richard Emanilov wrote: Guys, Thanks so much for your help, when running wget --http-user=login --http-passwd=passwd --post-data=login=loginpassword=passwd https://site With version 1.9.1, I get the error message Site: Unsupported scheme. have you compiled wget with SSL support? -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi University of Ferrara - Dept. of Eng.http://www.ing.unife.it Institute of Human Machine Cognition http://www.ihmc.us Deep Space 6 - IPv6 for Linuxhttp://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it