even worse trouble with libURL...

Dave Cragg dcragg at lacscentre.co.uk
Sun Jan 30 03:48:15 EST 2005

On 29 Jan 2005, at 18:32, Andre Garzia wrote:

> Hi Folks,
> I am trying some put URL commands here on the message box and 
> receiving weird results...
> put URL "http://www.yahoo.com"  -- works.
> put URL "http://www.altavista.com"  -- works.
> put URL "http://www.mac.com"  -- don't work, returns empty, nothing.

> put URL "http://www.soapdog.org"  -- don't work, and I know my site is 
> there.

First, make sure you are using the latest libUrl. You can get it here:


This fixes a bug introduced in the previous version where http 
redirects were turned off by fefault. The latest version has redirects 
turned on by default. (You can turn redirects on or off yourself with 

However, even with redirects turned on, you may not get what you 
expect. When I connect to http://www.soapdog.org  and log with 
libUrlSetLogField, it goes through a couple of redirects:

1.  First response is a 302 redirect pointing to 

2.   That in turn gets a 301 response redirected to 

3.   This url returns with 200 OK and some html which has an empty BODY 
but contains the following in the HEAD:

<meta http-equiv="refresh" content="0;url= 

libUrl won't interpret any redirects contained in the html itself.


More information about the Use-livecode mailing list