post to authorization form

sims sims at ezpzapps.com
Sat Aug 31 03:17:01 EDT 2002


I am trying to send a username & password to an  authorization
form on a web page. It works fine when I use my browser (IE).

I use the following to 'Post' to that same url but have no success, can
anyone advise where I am screwing up?
  [I post to the location listed in the form]

Is the server expecting something other than a colon ":"
between user & pw?

The libUrlLastRhHeaders seem to be saying I've arrived at the right
place with the "HTTP/1.1 200 OK" but the Authorization seems to
expect something different....

TIA

sims


on mouseUp
   set the cursor to watch
   put fld "url" into tUrl
   put fld "user" into tUser   -- sims is username
   put fld "pw" into tPW   -- sims is password

put tUser &":"& tPW into tAuthString
post URLEncode(tAuthString) to tUrl
put it
end mouseUp



For a web page (it) I get back:

<h3>Authorization Failed.</h3><br><a href=login.asp>Please try again.</a>
<body bgcolor="#FFFFFF">



 From   libUrlLastRhHeaders() I get the following info:

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Sat, 31 Aug 2002 07:44:36 GMT
MicrosoftOfficeWebServer: 5.0_Pub
Content-Length: 101
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQGGGGWBO=BINKMGCBKLJIOLCHNGNFDPGN; path=/
Cache-control: private
Age: 7287
Via: HTTP/1.1 noc-ts1 (Traffic-Server/4.0.18 [c sSf ])

___________________________________________

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



More information about the use-livecode mailing list