Archive: Passing parameters to URL and return codes


Passing parameters to URL and return codes
Hi,

I'm working on an installer that needs to verify unique usernames against an online database. How can I do this? Can parameters be passed to a URL/servlet? I have tried this NSISdl, maybe incorrectly but get a cannot connect to server message when I do something like this:

NSISdl::download "10000" "http://www.url.com?username=blah&password=blahblah

The thought is that I would redirect to different pages based on what the result was and have NSISdl download that page and parse the contents.

Can this work? Is there an easier way to get a response from a URL?

Thanks in advance,

James


i have played with this a bit. THe only way to do that sort of thing with NSISdl is to save a file to disk and open it up and read its contents.

You need to be careful with your script. Make sure you supply an accurate Content-length header. PHP does not supply one by default.