Trying to pass some variables with HTTP REQUEST
|
|
iblindfool Weary
Registered User
Join date: 13 Feb 2005
Posts: 9
|
05-30-2008 16:52
Hiya, the resources in the wiki are scant in describing how to pass variables and paramaters in a HTTP_REQUEST..
Sorry to seem so dense... But read this....
• list parameters – HTTP request parameters in the format [ parameter1, value1, parameter2, value2, . . . parameterN, valueN]
And thought it meant that you write something like this in the []..
["RMOTECHANNELRPC", (string) remotechannel]
---- remotchannel was a KEY and I am sending httprequest from within remote data channel call ------
But I got an error that "HTTP parameter key 1 is not an integer" ?????
Any good resources about this issue that anyone has or a sentence explaining how to do it would be appreciated.
BTW I am trying to use the http request to pass the rpc channel back to the database, for storage. If that makes sense then you prolly get my question.
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
05-30-2008 17:20
The LSL-Wiki is usually more helpful - they provide a good example of how to use llHTTPRequest(): http://www.lslwiki.net/lslwiki/wakka.php?wakka=llHTTPRequest
|
|
iblindfool Weary
Registered User
Join date: 13 Feb 2005
Posts: 9
|
05-30-2008 17:38
Thanks Haruki, that did fill in the blanks.. Task completed!!
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-31-2008 06:52
I've changed the description to make it harder to make that mistake. It now reads: • list parameters – configuration parameters, HTTP_* flag & value pairs [ parameter1, value1, parameter2, value2, . . . parameterN, valueN]
The article could really use an explanation of using the different HTTP_METHOD values and how to construct requests.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
|
05-31-2008 13:06
From: Strife Onizuka I've changed the description to make it harder to make that mistake. It now reads: • list parameters – configuration parameters, HTTP_* flag & value pairs [ parameter1, value1, parameter2, value2, . . . parameterN, valueN]
The article could really use an explanation of using the different HTTP_METHOD values and how to construct requests. I read that as saying it's a list of either configuration parameters or flag and value pairs. How about "configuration parameters, specified as flag, value pairs: [flag1, value1, ...., flagN, valueN]"? (I'm not sure what the accepted protocol is for this sort of suggestion, but it seems rude to just go in and change the wiki immediately after someone else changed it.)
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-31-2008 13:27
Flag, parameter, whatever. The confusing bit might be that it is the NAME of the thing in the first position. Maybe it would be better to state it as "[ parameter1Name1, parameter1Value, parameter2Name, parameter2Value, ... ]".
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-31-2008 17:10
From: Kidd Krasner I read that as saying it's a list of either configuration parameters or flag and value pairs.
How about "configuration parameters, specified as flag, value pairs: [flag1, value1, ...., flagN, valueN]"?
(I'm not sure what the accepted protocol is for this sort of suggestion, but it seems rude to just go in and change the wiki immediately after someone else changed it.) I'll make it so. You are welcome to and I give you permission to edit anything I edit immediately after I edit it. I won't take any offense, all I ask is that you consider filling in the comment field. If something is bad it should be corrected, bad content should not see the light of day. Personally I like it when there is someone editing my edits, it gives me something to think about, the different view point of the other author spurs me on to write better content. I'd rather my edits be edited immediately then hours or days later, while I'm still thinking about it. For me the content comes first, the people come second. I welcome constructive criticism and I'm open to all sorts of ideas. If there is some big sweeping change you wish made (and you consult me) be prepared to implement it yourself or organize people to implement it for you; I'm not your bitch, I choose my own projects.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|