Getting data from a secure web page

Dave Cragg dave.cragg at lacscentre.co.uk
Wed Feb 3 05:40:57 EST 2010


Sarah

Not quite sure what you're wanting to do. Do you just want to get the html page normally returned after login from within a Rev script?

If so, does this work?

on mouseUp
  libUrlSetSSLVerification false ## SEE BELOW 1
   put "https://memberservices.optuszoo.com.au/login/" into tUrl
   put "Action=login&username=abc&password=abc" into tPostData ##SEE BELOW 2
   
   post tPostData to url tUrl
   put it into field 1
   if the result <> empty then
      answer the result
   end if
end mouseUp

Point 1
libUrlSetSSLVerification false does as Bernard says, and no check is made of the certificate. (But data is still sent encrypted) Better to set the sslCertificates to a suitable file if you have one.

Point 2
Change the "abc" for username and password to the correct values. (URLEncode if they contain funny characters or spaces)

When I tried it, it returned the login page again but with the "Incorrect username/password." text included, which suggests it might be doing something right. 

Good luck!
Dave




More information about the use-livecode mailing list