Using Curl
Here is an simple example about to send json message with a cookie.1 2 3 4 5 | curl -X POST -d @input2.json --cookie "portalOpenSSOToken=sso-token-1" --header "Content-Type: application/json" http: //localhost:8080/caweb/api/seatRevenueByAgency |
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThanks, nice tips
ReplyDeletehow can i mimic this in my code. i want to send and receive cookie. otherwise server is not authenticating me.
ReplyDeleteworkd well
ReplyDelete