Use wfetch to view HTTP request and response packets

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.