Hi Micah

Not sure if you already replied..Sorry if you've replied. Kindly mark a copy to 
[email protected] to avoid any mail delivery issue.

I've tried the commands you sent in the link. But they don't seem to go 
through. I can see the cookie file getting generated, but when I use that 
cookie file for the second call to actually download the file, I get an error 
that request is not authorized. Looks like the cookie file is not correct. I've 
attached the commmand that I tried.

Also when I'm behind a proxy server, the request is not going at all. I get 
Connection could not be made error. I've set the http_proxy in the .trc file 
and specified the proxy user and password in the wget command, but no success.

I would appreciate if any one in the mailing group can help me.

Regards

Rajesh



--- On Mon, 6/29/09, [email protected] <[email protected]> 
wrote:

> From: [email protected] <[email protected]>
> Subject: Re: [Bug-wget] help on wget with IIS forms authentication
> To: "Micah Cowan" <[email protected]>
> Cc: [email protected]
> Date: Monday, June 29, 2009, 1:08 AM
> Hi Micah
> 
> Extremely thankful to the reply. Even I'm surprised why
> your earlier mails got bounced. I used to check mails in my
> Spam folder too, but only this time I recieved it in my spam
> folder.
> 
> I tried that command for the login authentication. It
> generates the cookie file, but I see it is empty. Once I've
> the cookie file, and then try to connect to the actual page,
> I see that the request gets redirected to the login page,
> which means the authentication had failed. Since I'm using a
> MOSS login page, it has lots of other hidden fields which
> all I have supplied. I've attached the text file with the
> command I tried, first command for login and second for
> actual download.
> 
> Is the cookie file by default empty or will it be filled
> with login data had the authentication been success?
> 
> Any help on this is welcome.
> 
> Regards
> 
> Rajesh
> 
> 
> --- On Tue, 6/23/09, Micah Cowan <[email protected]>
> wrote:
> 
> > From: Micah Cowan <[email protected]>
> > Subject: Re: [Bug-wget] help on wget with IIS forms
> authentication
> > To: "Rajesh N" <[email protected]>
> > Date: Tuesday, June 23, 2009, 9:14 PM
> > Rajesh N wrote:
> > > Hi Micah
> > > 
> > > Sorry for bothering you again. I did not receive
> the
> > previous mail you mentioned earlier.
> > 
> > I've sent it to you twice now. Not sure why you're
> not
> > getting it, but
> > mostly it was directing you to have a look at
> > http://wget.addictivecode.org/FrequentlyAskedQuestions#password-protected
> > 
> > -- 
> > Micah J. Cowan
> > Programmer, musician, typesetting enthusiast, gamer.
> > Maintainer of GNU Wget and GNU Teseq
> > http://micah.cowan.name/
> >
> 
> 
>       


      
wget 
--post-data="__LASTFOCUS=&__VIEWSTATE=/wEPDwUKMTc0NDQ2ODg4OQ9kFgJmD2QWAmYPZBYCAgMPZBYCAjUPZBYCAgEPZBYCZg9kFgICDQ8QDxYCHgdDaGVja2VkaGRkZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFJmN0bDAwJFBsYWNlSG9sZGVyTWFpbiRsb2dpbiRSZW1lbWJlck1lWqoKSTFZRdmtdmOAukwRgqri+LA=&ctl00$PlaceHolderMain$login$UserName=rajeshn&ctl00$placeholdermain$login$password=welc...@123&ctl00$PlaceHolderMain$login$login=Sign
 
In&ctl00$PlaceHolderMain$login$RememberMe=&__spDummyText1=&__spDummyText2=&__EVENTTARGET=&__EVENTARGUMENT=&__EVENTVALIDATION=/wEWBQKjtZi0BwLE96mtBQLLtsPBAgLkkP7MCgK/lZyyB1L9SSuFPVM3iRdp44aGyy2sNpqF"
 --save-cookies=my-cookies.txt --keep-session-cookies 
http://moss:8080/_layouts/login.aspx?ReturnUrl=%2f


wget --load-cookies=my-cookies.txt --save-cookies=my-cookies.txt 
--keep-session-cookies http://moss:8080/_layouts/viewlsts.aspx

Reply via email to