"Notes" How to view HTTP request headers && "experiment" the world martial arts only fast not broken

Source: Internet
Author: User
Tags http post

    1. Open the Chrome browser and click on the "three" button in the top right corner.

      Click the Tools-----and then click Developer Tools

    2. Locate the Network Options box. Take the Baidu experience page for example, click the Task checkbox to view the network request flow

    3. Within the network box, there will be all the request flows

      4. Click on the request stream you need to view the header information

"Experiment."

View Source:

Find the submitted key for post submission, view the request header;

The flag is then post-submitted:

Add:


Import requests then, try to get a webpage. In this example, we'll get the public timeline for Github:>>> r = requests.get ('https://github.com/timeline.json Now, we have a Response object named R. We can get all the information we want from this object. Requests's simple API means that all HTTP request types are obvious. For example, you can send an HTTP POST request like this:>>> r = requests.post ("http://httpbin.org/post")
= Base64.b64encode (str1)  = Base64.b64decode (str2) decoding

So the problem-solving script:

 import   requests  import   Base64url  =  "  http://ctf5.shiyanbar.com/web/10/10.php   " rs  = Requests.get (URL). Headers[ " flag   " ]v  =< Span style= "COLOR: #000000" > Base64.b64decode (RS)  print  requests.post ( Url=url,data={ " key   ": V.split ("   :   ") [1]}). Content 
An HTTP message that sends a POST method to the URL, data is the segment of the post, and V is a string that is split into a list with ":"

Add:

Python request module: Resp.text Returns the Unicode type of data. Resp.content returns the bytes type, which is the binary data.

"Notes" How to view HTTP request headers && "experiment" the world martial arts only fast not broken

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.