Jump to content

llHTTPRequest with Mozilla in request?


Manifold Destiny
 Share

You are about to reply to a thread that has been inactive for 4323 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

According to the docs:

The llHTTPRequest User Agent string is not recognised by some web servers as it does not contain "Mozilla", which would identify it as a web browser instead of, for example, a Shoutcast or an RSS client. A workaround is to append " HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n" or similar to the URL string, which will kludge the HTTP request to look like it originates from a web browser.

The url I need to use looks like:  http://www.here.com/yyy.php?p1=aaa&p2=bbb

Can somebody show me how the kludge would look to add the Mozilla identity to the URL?

Link to comment
Share on other sites

The URL would simply look like:

 "http://www.here.com/yyy.php?p1=aaa&p2=bbb HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n";

 Just as the Notes in the wiki say.

If it still dosn't work,It most likely not that the work around hasn't been applied correctly, but that the server doesn't like the way the header is manipulated or something else in thr header. I remember a case with word-nic that you just can't use from LSL (directly)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4323 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...