|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
05-07-2007 07:32
Hi there - I am writing an HTTP Request to an ASP.NET page, that picks up the paramter and writes to a text file. When I call manually using the parameter it brings it in fine. However, when I have the code below: // HTTP Information requestid = llHTTPRequest(strSurveyURL, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"],"SubmittedText=Sample"  ; The page is called, but the URL paramaters are not passed in ( I define the URL earlier in the function ). Is there a different syntax for ASP.NET pages when passing the URL parameters? Tks, TB
|
|
Ultralite Soleil
Registered User
Join date: 31 Aug 2006
Posts: 108
|
05-07-2007 07:43
From: Taylor Bracken // HTTP Information requestid = llHTTPRequest(strSurveyURL, [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"],"SubmittedText=Sample"  ; Are you sure you want to be using POST? You can try "GET" to in the call to llHttpRequest to better mimic what you do manually in a browser.
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
05-07-2007 10:08
And if you are using POST intentionally, then there are no URL parameters, you must access your through Page.Request.Form["myVariable"] rather than Page.Request.Params["myVariable"]
.
|
|
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
|
05-07-2007 11:27
Request("yourVarName"  can be used to get POST and GET data, I don't recall which it looks for first but if it finds the variable name in either collection it will return it.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
05-07-2007 12:48
You have to use POST to actually send body data to a webserver. GET only uses the URL.
|
|
Taylor Bracken
Registered User
Join date: 26 Apr 2007
Posts: 42
|
Thanks for the replies back
05-07-2007 15:13
Just a note to say thanks for the replies above and I'll check on the GET.
thanks again - TB
|