Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problems with llEscapeURL()

Slade Christensen
Liquid Heat CTO
Join date: 25 Dec 2005
Posts: 31
09-18-2007 08:40
CODE


string URL = llEscapeURL("http://60.51.111...");



The above code compiles but when run the error pops up:

"HTTP URL does not start with http:// or https://"

Any idea why?

(had to make the url an incorrect one with the ".." at the end so the forum didnt mess up the post with tags)
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
09-18-2007 11:59
Because llEscapeURL turns it into "http%3A%2F%2F60.51.111...", and presumably you are using that in an llHTTPRequest somewhere. You don't want to escape a whole URL, just any parameters that might have special characters in them.

ex:
reqid = llHTTPRequest( URL + "?terse=1&name=" + llEscapeURL(NAME), [], "" );

Also, there is an "automatically parse links in text" box below the first set of buttons that you can uncheck when posting to avoid the automatic tags.
Slade Christensen
Liquid Heat CTO
Join date: 25 Dec 2005
Posts: 31
09-18-2007 12:32
thank you much, and yea i tried unchecking that box, didnt help