Telnet simulates http GET and Post methods

Source: Internet
Author: User
Get mode 1. Telnet 192.168.1.110 80, after connection.

2.

Windows Doc command line: Ctrl + '] ' keys enter input mode, then press ENTER to switch to explicit input mode (you can display the characters you enter)

The Linux command line does not require this action.

3. Enter HTTP header, two times return (\ r \ n).

Get/api.do?user=charlie&pwd=w2ss42 http/1.0

content-type:text/html; Charset=utf-8

Post Method 1. Telnet 192.168.1.110 80, after connection.

2. Ditto.

3. Enter the HTTP header, two return (\ r \ n), then enter the post parameters.

Post/api.do http/1.0

content-type:application/x-www-form-urlencoded

Content-length:15

User=charlid&pwd=w2ss42

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.