Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request working in curl but not in postman

Tags:

curl

postman

This request working with curl

curl 'http://www.express.com/browse/gadgets/store-change-location-more.jsp?changelocation=true&catelogRefId=75116576' -H 'Cookie: JSESSIONID=6D26018EFF8B54EC4022299B2AC7B184.cmhlpecomecm02w2;' --compressed

But the same request not working in post man

Post man request

Request Type : GET

URL : http://www.express.com/browse/gadgets/store-change-location-more.jsp?changelocation=true&catelogRefId=75116576

Headers:

Cookie: JSESSIONID=6D26018EFF8B54EC4022299B2AC7B184.cmhlpecomecm02w2;

How to make request work with post man too?

like image 280
Mounarajan Avatar asked Jun 22 '16 05:06

Mounarajan


People also ask

What is the difference between cURL and Postman?

Postman is a platform for testing APIs. cURL is a command-line utility that allows you to transmit data over URLs. To do the same operations with REST APIs, we may use Postman as a GUI (graphical user interface) and cURL as a CLI (command-line interface).

Is Postman based on cURL?

Postman is an API testing environment. cURL is a command line tool for transfering data via URLs. When it comes to REST APIs, we can use Postman as a GUI (graphical user interface) and cURL as a CLI (command line interface) to do the same tasks.

Do post requests use cURL?

To make a POST request with Curl, you can run the Curl command-line tool with the -d or --data command-line option and pass the data as the second argument. Curl will automatically select the HTTP POST method and application/x-www-form-urlencoded content type for the transmitted data.


2 Answers

Intermittently happened to me as well. I tried these steps:

  • Go to settings, disable Send Postman Token Header
  • Disable Interceptor (The satellite icon at the top)

Not sure why, but it simply worked!

like image 126
ennovation Avatar answered Oct 25 '22 04:10

ennovation


In my case, only the requests to localhost were working. This happened after it synchronized with other instances I was logged into.

After I disabled SSL certificate verification in Settings->General, it started working again.

like image 35
Edy Avatar answered Oct 25 '22 04:10

Edy