Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Replace notecard with text file on web server

Cookie Bertone
Music & Audio
Join date: 13 May 2006
Posts: 13
06-30-2008 06:46
I'm looking for an answer to what I am sure is a simple problem and my searches through the forum have not given me an answer that is either useful or that I can understand.

I have a script that gets its information from a notecard but I want it to get the information from a text file on a http server.

currently it uses a simple

string ncName = "notecard_name";

How do I tell it to use a text file on a web server instead?

Is this possible? I guess it is something to do with llHttpRequest but I have had no experience of interaction of this type so it is a completely new area for me.

Thanks in advance for any help you can give.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
06-30-2008 06:50
look up
llHTTPRequest()
and
http_response()
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
06-30-2008 09:05
use http request pointing to your url and text file on that server

it will come back as a string in the http_response() event, up to 2kb