These forums are CLOSED. Please visit the new forums HERE
How would i go about handeling the POST on the http request? |
|
|
Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
|
06-07-2006 12:38
What php function would handle this function?
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
06-07-2006 12:59
$_POST perchance?
|
|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
06-07-2006 15:29
Sample request coming from SL:
CODE
PHP code: CODE
|
|
SiRiS Asturias
Chaotic Coder
Join date: 27 Sep 2005
Posts: 93
|
More Examples...
06-12-2006 07:25
The link below shows basic, fast examples for PHP & ASP.Net2.0:
http://forums.secondlife.com/showth...611#post1086611 $_REQUEST is a better way to go since you can then use POST or GET interchangably without the need to rewrite your serverside code. Enjoy! ![]() _____________________
Proud founder of:
S3 - Self Storage Systems S3storage.net (Coming Soon!) SLBoutique.com SLExchange.com - Find What You Need, When You Need It. "Light travels faster than sound. This is why some people appear bright, until you hear them speak." |
|
Sitting Lightcloud
Registered User
Join date: 13 May 2004
Posts: 109
|
06-12-2006 07:46
I had problems receiving the $_POST data on my server but this comment on the wikki helped, thanks VeloxSeverine!
Wikki Reference This function currently as of preview 1.9.1 doesn't pass the Content-type or Content-length headers, making it impossible for PHP (not sure about Perl, Ruby on Rails, Cold Fusion, etc.) to parse POST data automatically and place it into the $_POST superglobal array. I've wrote a simple PHP snippit to replicate what PHP does. Currently it's not multidimensional, but if somebody wants it I'll write that in too. This should work on all servers. Also, look into using llEscapeURL to escape your data especially if it contains unsafe characters (such as spaces, or ampersands), but beware of its limitations; you may wish to write a wrapper function to make sure you do not encounter it. CODE
-- VeloxSeverine (2006-04-16 21:52:07) |