Getting data from a secure web page

Sarah Reichelt sarah.reichelt at gmail.com
Wed Feb 3 21:04:37 EST 2010


> The custom version of libURL is actually a plain text document. Here are the
> instructions for installing it:
>
> http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5615-How-Do-I-Install-the-Custom-Version-of-libURL-
>
> This version of libURL will also handle cookies for you seamlessly.
>
>> So a few questions for Trevor:
>> - is there a version of your libURL that opens in Rev 4.0 or 4.5?
>> - how do I make it the default instead of the current one?
>
> See instructions.
>
>> - how do I set up the callback? I am familiar with using callbacks for
>> the asynchronous FTP commands but then I create a handler that gets
>> the callback message and processes it. What do I need to do in this
>> callback handler to make it follow the redirect?
>
> libURLSetFollowRedirectCallback registers a callback:
>
> libURLSetFollowRedirectCallback pMessage, pObject
>
> Just pass the name of the message that should be sent and the long id of the
> object the message should be sent to. If no object is specified then it is
> assumed the callback message is in the message path.
>
> From the callback you should return "redirect" if you would like to try the
> POST again using new url. Return "get" if you want to GET the contents of
> the new URL. Return anything else to let libURL do what it would normally
> do.
>
> libURLSetFollowRedirectCallback "RedirectRequestCallback", the long id of
> stack "MyStack"
>
> command RedirectRequestCallback pMethod, pURL, pStatusCode, pRedirectURL
>    -- return "redirect" or "get" or empty
> end RedirectRequestCallback


Thanks for all this Trevor. I installed your custom libURL fine thanks.

It now redirects but it doesn't get me where I want, instead I get:
<div class="error">You must be logged in with a parent account to
access this functionality.</div>

So progress, but still not there....

Cheers,
Sarah



More information about the use-livecode mailing list