Send http request using postman
hi all, if we have a Form data like this
body: {"permissions":["see","see_contents"],"include_sub_types":[]}
how can we add them in the postman?
19 Replies
So you have a form such that, when you submit the form itself, a string like
is included in the payload of the http request?
In that's the case, you just need to include the body of the request in POSTMAN
body > raw field. You can select JSON in order to have JSON highlighting
yes.. if i select json it'll be like this.. which i dont think is correct based on the highlighting😅
yep, that's clearly not valid JSON
You know more or less how does JSON syntax works?
^ THIS is valid JSON syntax
Try pasting it in here
The JSON Validator
JSONLint is the free online validator and reformatter tool for JSON, a lightweight data-interchange format.
hmm i see, so ive to just paste this without encode the url, i wonder why this request is not working when i try to send it through postman, but it works if i access it through the website directly, have you faced this issue before?
it return me something like
I suggest using the browser developer tools in order to see the precise request the website is performing
And see if it is any different from the request you perform by means of postman
do you mean to copy the web request like this, is that right?
for example copy as fetch?
Note sure what you're looking at, but e.g. if I browser at google while I have the developers tool open in the "network" tab I can see this
As you can see, on the right I have all the requests my browser Firefox is performing towards google server and, for each request, I can check header, payload, response etc...
@alkasel yes i got that info from Network tab as well, but what can we compare?
you should compare the body of the request performed by the browser with the body of the request you sent by means of POSTMAN. If I understand correctly, that's the problem
In the screen I posted, on the most right part you have "[[1, null...". That's the body of the request
you mean the payload right haha, yeah that's what i send the first time i was asking the question..
i sent this at my first statement
but i dont think there's much information in this, this is the payload that i paste into POSTMAN request
Ah yep now I see
I don't know then, I don't have the complete context neither. Maybe there is a different header... I don't know
I tried to help because I know POSTMAN, but this may be out of my scope
Make sure you have set the http verb in POSTMAN correctly (e.g. POST instead of GET)
yeah i set that to be the same as the browser request..
im not sure what could be the issue i think i'll try to check further first
@alkasel thank you so much for your help!
No problem 🙂