Posting to a web page

Sarah Reichelt sarah.reichelt at gmail.com
Sat Oct 16 20:18:59 EDT 2010


Len you need to pair up the variable names with their values.
Something like this:

put "username=" & URLencode(tUserName) into myDataString
put "&password=" & URLencode(tPassword) after myDataString
 etc, etc.

Then you can use the post command as you have it below.

Cheers,
Sarah



On Sun, Oct 17, 2010 at 9:37 AM, Len Morgan <len-morgan at crcom.net> wrote:
>  I'm trying to create a "value added" front end to a web site.  What I need
> to do first is login to my account.  I suspect the the entire site is
> created in the same "style" so once I get past logging in, I should be able
> to scrape the rest of the data I need to present in LiveCode locally.
>
> The login page is a simple html form with 4 "fields":
>
> auth_vars[username]
> auth_vars[password]
> auth_vars[submit] Value="Login"
> auth_vars[action]  Value="login"
>
> The form will be submitted to /login.php using POST
>
> My question is how can I create this login sequence and send it to login.php
> followed by the variables?  I know with the GET method you have
> varname=value separated by commas.  LiveCode will let me do something like:
>
> post myDataString to URL "http://mywebsite.com/login.php"
>
> but I don't know how to format myDataString in order to have it accepted.
>
> Any help or pointers to web sites that might enlighten me are appreciated.
>
> len morgan
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
Cheers,
Sarah

Rodeo discussion:
http://alltiera.com/discussion/



More information about the use-livecode mailing list