Wednesday, October 28, 2015

How Send Cookie Using Postman or Curl

Using Curl

Here is an simple example about to send json message with a cookie.
curl -X POST 
-d @input2.json 
--cookie "portalOpenSSOToken=sso-token-1" 
--header "Content-Type: application/json"  
http://localhost:8080/caweb/api/seatRevenueByAgency 

Using Postman

To use postman, we need to install inteceptor. Then you need to turn on the interceptor as shown in the following feature.

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Thanks, nice tips

    ReplyDelete
  4. how can i mimic this in my code. i want to send and receive cookie. otherwise server is not authenticating me.

    ReplyDelete

Anypoint Studio Error: The project is missing Munit lIbrary to run tests

Anypoint Studio 7.9 has a bug. Even if we following the article: https://help.mulesoft.com/s/article/The-project-is-missing-MUnit-libraries-...