Curl Impersonation Login, concurrency test

Source: Internet
Author: User
Tags send cookies

Development of a variety of software or systems need to carry out stress testing, and recently a background web system needs to be tested, how to be very convenient to test it, curl OK.

Curl is a powerful command under Linux/unix, and the most important part of the Url,web test is to maintain the session, and the client implements it in the form of a cookie.

Curl Parameter Description:
--data Post Mode parameters
-L Automatic Redirection
-C Save Cookies to file
-B Send cookies together to the server

Here is a look at the specific operation:
Analog Login:

1
curl -l  -c  cookie --data  " username=xxx&password=xxx "   my_login_url

Get login page:

1
curl -b  cookie  pages_after_login_url

This allows you to perform some concurrency tests under the terminal.


For more articles, please visit the little Fat Xuan .

Curl Impersonation Login, concurrency test

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.