Custom headers HTTP protected site

Jim Ault jimaultwins at yahoo.com
Sun Oct 11 15:10:40 EDT 2009



On Oct 11, 2009, at 11:32 AM, Josh Mellicker wrote:

>
> On Oct 9, 2009, at 2:14 PM, Jim Ault wrote:
>
>> I am trying to understand how HTTP headers work with password  
>> protected sites and file downloads.
>
> Jim, I just wanted to mention cURL as an option if things don't work  
> out to your satisfaction.
>
> With "open process" and "read from process until linefeed" in a  
> callback loop it integrates with Rev nicely.


This simple solution works very well.
> set the httpHeaders to "Authorization: Basic  
> cm90b3Bhc3MyOjUzcHJpbmNlNDY="
> put url "http://www.baseballhq.com/members/tools/projections/proj.php?lg=A&p=B&t=PY&ids=1&f=csv 
> " into tData

Thanks for the alternate solution.

  Jim Ault
Las Vegas


More information about the use-livecode mailing list