|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
10-04-2008 03:53
Is there a way to read JSON-Data with llHTTPRequest? When I try to do it, I get an unsupported content-type error... 
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
10-04-2008 05:27
JSON is text-based (as far as I know), so in theory, it should be possible. You'd have to write a parser for it though, and be very wary of memory limits.
What is it you're doing at the moment that causes the error?
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
10-05-2008 21:21
if you own the webserver i think you'll need to set the mimetype in the response to text/plain not application/json -- http_response only accepts text/plain and text/html afaik
_____________________
http://slurl.com/secondlife/Together
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
10-06-2008 01:40
Thanks for the replies. Yeah, it looks like SL doesn't accept JSON-types. Found Jira-entry meanwhile. The Webserver isn't mine, so I can't do anything about it... I meanwhile wrote a PHP-Script that runs on my server which gets and parses the JSON-Data and then passes it on to SL... I don't like that, but hey, at least it works 
|