Custom headers HTTP protected site
Jim Ault
jimaultwins at yahoo.com
Sat Oct 10 23:49:07 EDT 2009
This worked for my case
get "http://loginn:passwordd@www.baseballhq.com/"
get it & "members/tools/"
get it & "projections/proj.php"
put url it into allPitchersBlock
put libURLLastHTTPHeaders() into headersToAnalyze
--one of the headers is Authorization: Basic
cm90b3Bhc3MyOjUzcHJpbmNlNDY=
filter headersToAnalyze with "*Author*"
put headersToAnalyze into msg
Perhaps you could manually do the login page with your browser, using
LiveHeaders tool to capture the headers going to the server and sent
back. I use Firefox 3+ on OSX 10.5, but I think LiveHeaders works
with most any browser. Google it and see.
Jim Ault
Las Vegas
On Oct 10, 2009, at 5:08 PM, Sarah Reichelt wrote:
>> Step one is to use a ping to domain.com/page.php to get the headers
>> for
>> today
>> Step two is to extract the Authorization header
>> Step three is set the httpHeaders and put the url into a variable.
>
> I too have a need to get data from a protected https page. I can login
> from my browser, but when I try to get the page, even suppling my
> username & password in the URL, I just get the HTML of login page
> returned. I have also tried checking the form in the login page and
> POSTing the data directly, but that gets me "error 302 Moved
> Temporarily".
>
> I was hoping that your technique would help, but I don't understand
> how to get the headers. Does the site you are using have a special
> page set up to help with this, or can any page be used?
>
> Regards,
> Sarah
> _______________________________________________
> 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
Jim Ault
jimaultwins at yahoo.com
More information about the use-livecode
mailing list