Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llHttpRequest using asp.net languages(c# or vb.net)

Ronin DeVinna
Registered User
Join date: 13 Mar 2007
Posts: 17
04-26-2007 15:15
Hi,

I need example of how to contact websites and get response to inside sl using asp.net and llHttpRequest.

Can any one put one example here ?

thanks a lot.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-27-2007 09:59
Well...the concept is rather simple...

...the llHTTPRequest will send information via a POST or GET, which you then process like you would with any form in .NET.

I'll get you a link to the llHTTPRequest() in the wiki where there is a good example. The web-side is up to you, but I assume that you wouldn't ask the question without knowing your bit of .NET and being able to process a POST/GET is probably simple to you :)

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llHTTPRequest
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Ronin DeVinna
Registered User
Join date: 13 Mar 2007
Posts: 17
04-27-2007 11:05
From: Kenn Nilsson
Well...the concept is rather simple...

...the llHTTPRequest will send information via a POST or GET, which you then process like you would with any form in .NET.

I'll get you a link to the llHTTPRequest() in the wiki where there is a good example. The web-side is up to you, but I assume that you wouldn't ask the question without knowing your bit of .NET and being able to process a POST/GET is probably simple to you :)

http://www.lslwiki.net/lslwiki/wakka.php?wakka=llHTTPRequest



hello Ken,

I test a sample...and it return, not only the response i want, but all the HTML code of the page...is this ok ? or im missing something ?
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
04-27-2007 11:36
Ahhh...right...

...the SL Object will receive an HTTPResponse that includes ALL "displayed" information on the page. Therefore...it's best to make sure that your communication page lies in the "background" and only sends document.write type responses or whatnot.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Ronin DeVinna
Registered User
Join date: 13 Mar 2007
Posts: 17
04-27-2007 12:32
You right...thanks Kenn :-)

So easy...i thought was any trick behind it...