Welcome! Log In Create A New Profile

Advanced

HTTPRequest Help WD 10

Posted by Jorge 
Jorge
HTTPRequest Help WD 10
May 19, 2008 06:15PM
I'm using the HTTPRequest command to login to a website and then
run a carrier rate quote. I'm not too sure how I can do this with Windev
but, when I log in, everything works as expected. However, when I
then redirect the command to a different page, it seems that the program
"loses" authentication. (for lack of a better term)

Here's my sample:

bPageRet is boolean
bRateRet is boolean
sAuthURL is string = "[works.pittohio.com];
sRateURL is string = "[works.pittohio.com];
sUserName is string = "demo"
sPassword is string = "demo"

bPageRet = HTTPRequest(sAuthURL,"","","","","",sUserName,sPassWord)

IF bPageRet = True THEN
bRateRet = HTTPRequest(sRateURL)
IF bRateRet = True THEN
Info("HTML Code Returned = " + HTTPGetResult())
END
END


The website is returning the "menu" page after login but after I redirect,
its saying that I have to authenticate.

Is there a way to save cookied in Windev? or are cookies not my issue.

TIA
KenKnight
Re: HTTPRequest Help WD 10
May 20, 2008 05:19AM
Hi,

Have you tried passing the user and password on the second request? It may be that they are using header authentication. You may have to examine the headers being returned on the first request to see what info is coming back.

Cheers!
Ken
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: