Can't import raw text request to postman

Hi guys, I always can’t import raw text request to postman, is there anyone know how to fix it, thanks!

Hey @spacecraft-geologist :wave:t2:

Welcome to the Postman Community :postman:

That’s not a valid format that the import feature will parse and create an element within the Platform.

Do you have a cURL statement for the same request?

Hi
I don’t have cURL, I tried many different HTTP request before but alway got the same result, so what is the correctly format pls?
Thanks

The link next to the error message in the UI will lead you to the learning center page which has that information.

The import feature only accepts a certain type of input and will not convert all formats.

It doesn’t work for me but thanks.

I’m not really sure what you mean by that :sweat_smile:

The accepted formats are cURL statements, Collection, Environments, Globals, API Definitions and data dumps (That have been exported from Postman).

It’s not something that accepts any format you throw in there, it need to be able to parse the input and create the Postman element(s) from that information.

You could create a new request and add those details:

Using the Headers Bulk Edit option, you can paste those values in and populate the Request Headers:

You could also use Postbot or another online tool to convert that HTTP statement to cURL to import it:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.