How can I Send GET request?

How can I send a http get request from command line under WinPE

  • I need to send a http get request under 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, it works well. But wget.exe was used to download file, not to send http request. Can anyone tell me how to make curl.exe work under WinPE? Or any other way to send http request under WinPE?

  • Answer:

    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://www.cs.tut.fi/~jkorpela/http.html for more detailed information on this.

dalang at Super User Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.