Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to have multiple lines in post body in Postman?

Tags:

json

postman

how do I get linebreaks in a json request body in Postman? I want to send the following body (raw, application/json) in a POST request in Postman:

{"csrRequest":"-----BEGIN CERTIFICATE REQUEST-----
MIICwzCCAasCAQAwfjELMAkGA1UEBhMCc3YxEjAQBgNVBAgMCVN
0b2NraG9sbTESUEBwwJU3RvY2tob2xtMRMfandMuchMoreLines
-----END CERTIFICATE REQUEST-----" }

I've tried putting everything in one line and forcing the line breaks with \n, \r\n and other similar combinations, but all I get out on the wire is the escaped combinations replaced with space, no line breaks what so ever.

What to do?

like image 999
jola Avatar asked Jun 13 '18 13:06

jola


1 Answers

just write what you want in notepad or any text editor and copy it and paste in postman field

I tested this with postman version 7.29.1 and it worked

like image 180
EBRAHIM Avatar answered Oct 01 '22 14:10

EBRAHIM