login.asp & Set-Cookie

sims sims at ezpzapps.com
Fri Aug 30 05:36:01 CDT 2002


I am trying to access web page which requires the user to input
a username & password into a dialog that pops up when one tries to access
the web page.

I have tried the following:

put tUser & ":" & tPW into tAuthString
put base64Encode(tAuthString) into tEncString
put "Authorization: Basic realm=www.someDomain.com" && tEncString into tHeader
set the httpHeaders to tHeader
put URL tURL into fld "page"


The web page does not appear but...
 From   libUrlLastRhHeaders() I get the following info:


HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Date: Fri, 30 Aug 2002 10:19:49 GMT
MicrosoftOfficeWebServer: 5.0_Pub
Location: login.asp
Content-Length: 130
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQGGGGWBO=IIJJMGCBHMHHMEDFALDDGDCH; path=/
Cache-control: private
Age: 7287
Via: HTTP/1.1 noc-ts1 (Traffic-Server/4.0.18 [c s f ])



Questions:

Does the libUrlLastRhHeaders say that after checking & approving the
username & password a cookie was sent to me?

If above is true, how can I use this cookie info to obtain the web page?

If I am all wrong here (which would not surprise me... ;-) how can I do this?

TIA

sims
___________________________________________

    http://EZPZapps.com         info at EZPZapps.com
       Software - Internet Development - Consulting



More information about the use-livecode mailing list