3

I need to send an HTTP GET request under Windows Preinstallation Environment (WinPE).

My first thought was curl.exe. It works well under Windows, but not WinPE. I committed curl.exe to boot.wim, but when I tested it under WinPE, it returns nothing. I have tested wget.exe in the same way as well, and it works well. But wget.exe was used to download a file, not to send an HTTP request.

How do I make curl.exe work under WinPE? Or is there another way to send an HTTP request under WinPE?

5

wget will use a GET request to retrieve whatever URL you feed to it, unless specified otherwise.

Another way would be to telnet into port 80 of your server and issue the http command directly.

From a command line window:

telnet <yourserver> 80
GET <path>

You might need to issue some additional http requests depending on how your server is configured. Read up on http headers for more detailed information on this.

  • Unfortunately, telnet is not supported in WinPE as also. But as you mentioned, wget will trigger a GET request. So I use "wget -t1 -T3 my-url" in my case and it works through not an elegant way. Thanks – dalang Jul 18 '13 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.