Custom headers HTTP protected site

Dave Cragg dave.cragg at lacscentre.co.uk
Fri Oct 9 18:47:41 EDT 2009


On 9 Oct 2009, at 22:14, Jim Ault wrote:
>
> Question      What am I missing?
> I set the libURLSetCustomHTTPHeaders == those used by the actual  
> browser but get a blank page.

To set custom headers, just use the httpHeaders property.

   set the httpHeaders to "SomeHeader: someValue"

(libURLSetCustomHTTPHeaders is really for setting the entire request,  
including the initial request line. Generally, it's not needed.)

But if it is just the authorization header that needs to be set, then  
it should get set automatically if you include the name and password  
in the url as in your example.

Dave


More information about the use-livecode mailing list