Use wfetch to view HTTP request and response packets
The wfetch interface is simple, but it already meets my general needs. It is really troublesome to learn how to use the javamail software package to send and receive emails in the Telnet window. Use a text editor to go back and forth to view the generated. eml file, and wait for the SMTP server to respond to the message in the command line Prompt window...
Now we have this wfetch, but it is much easier. Of course, it also supports connection to localhost, and is the default. Wfetch allows us to select various request methods and specify the HTTP protocol version. Below is my previous articleArticleThe HTTP connection information.
Note: The host name entered in the Host field does not include common "http: //", while the path field uses the resource path. By default, the port number randomly assigned by the host is used, and the default HTTP Version is 1.1. You also need to select the desired request method. The default value is get.
In the advanced request column, you can select the corresponding request header structure, message body or request, enter the corresponding information, and press enter to start the connection and obtain the HTTP request and response packets. For example:
Let's take a look at the content in the wfetch log output window to clearly see the content of the request message for this HTTP connection and the Response Message returned by the server, they are separated by the red "request" and "response" respectively. In addition, click "log cleanup" under the menu bar to clear the log output window.