Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import multiple curl requests into Postman

I'm trying to import a list of curl requests into a Postman collection.

With one single url i have no problem with import:

  • i go to import→paste raw text,
  • paste an url like curl -X GET 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=gesundbrunnen&inputtype=textquery&fields=formatted_address',
  • and it is imported like a charm.

But if i try the same game with two urls, i get an error

Error while importing Curl: Only the URL can be provided without an option preceding it. All other inputs must be specified via options.

What means the error, and how can i import multiple curl commands into Postman?

ps: A question beside the topic: maybe there are the ways to import multiple requests (GET/POST) and run them at once automatically, beside of Postman?

like image 843
Evgeniy Avatar asked Sep 12 '25 01:09

Evgeniy


1 Answers

This guy says you can write a script with curl-to-postman. I havn't tried but hope it helps.

like image 156
Mossmyr Avatar answered Sep 15 '25 17:09

Mossmyr