Archive: how to catch post data to webpage from installer using Inetload plugin?


how to catch post data to webpage from installer using Inetload plugin?
Hello

I am using the Inetload to post the serial number data to our webpage using InetLoad plugin and want to use that posted serial code for verification on the server side. After verification server code will post the confirm message back to installer.


Could you please suggest me as how to catch the post data from installer on the server side and to send back the confirm data to installer (InetLoad)?

thanks...


You need to write a server side script/executable in a language that your server supports (such as PHP, ASP, JSP or Perl).

If the validation was successful, set the Content-type to text/plain (i.e. with PHP's header function) and then output a message such as "success". InetLoad will download this as plain text to a file that you specify which you can then read with FileOpen, FileRead and FileClose.

Stu


Thanks alot for your suggestion.So the process includes posting the serial code entered by the user to web page(server side) and after the validation on the server side (using asp.net) requires to send the message in header format.

Could you please tell me as how to retrieve the serial code posted from the Inetload on the server side( general idea) and is single Inetload statement sufficient for both sending and retrieving the data?

ex:InetLoad::load /post "serial code" "URL" "$var" /silent ""

Pop $var


Thanks.


You really need to do some more homework! I have only used ASP once or twice, but if I remember correctly, it is Request.Form("serial") that you want and your POST string should be "serial=serial code".
Use:

Response.ContentType = "text/plain"
Response.Write("success")

...on success.

Stu