[postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser

Posted on

When using postman to test and develop the interface, we encounter the problem of login permission. The permission of this project is based on a certain value in the cookie, so we need to attach the cookie content when sending the post request

TransmittedhttpOn request, withcookieparameter

  • By viewing the online interface call information in chrome, we find that the login permission is determined by the session in the cookie, so we need to set the cookie in postman to test the post request in postman.
  1. Click the button to open the cookie setting window
  2. Enter the name of the domin
  3. Save domin
  4. Add specific cookie parameters, each of which needs to be added here
  5. The name of the cookie in the front and the value in the back
  6. Save this cookie under the domain

[postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser

Intercepting requests through interceptor

  • The advantage of interceptor is that it does not need to fill in all parameters manually, but directly intercepts the left and right parameter settings of an HTTP request
  1. Click this button to open the interceptor related settings window
  2. clickinterceptorButton
  3. clickONTurn on the interceptor, and the one on the right should appearCONNECTEDIf it’s a little greenUNCONNECTEDThe gray dot of can refer to the document
  4. Set where to save blocked requests
  5. Filter blocked requests

[postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser

Common problem

Interceptor isUNCONNECTEDThe gray dots of
  • Officials have mentioned such a solution

Officials have mentioned such a solution

  • The core content is:

    • The cookies and domains will be populated automatically. Can you confirm the following:

      1. Chrome is open, and has the Interceptor extension installed (v0.2.26)
        Google browser is open and the interceptor extension is installed
        [postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser
      2. You’ve completed the installation steps for the bridge
        Installation completedbridge
        [postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser
      3. The Interceptor Status isn’t updating to ‘Interceptor Connected’ even after restarting Chrome
        After restarting Google browser, the interceptor application is in the connected state
        [postman login authority] add cookies to HTTP requests, and use interceptor to block requests sent by browser
    • Interceptor is an interceptor used to intercept HTTP requests of chord browser. It can send related requests to postman software.
    • Interceptor bridge is a small application used to establish information connection channel between browser and postman software, which needs to be installed manually.
  • According to the scheme, theUNCONNECTEDThe little gray dots ofCONNECTEDGreen dot of

Leave a Reply

Your email address will not be published.