Hi there, first time posting here;
ive got a curl command (that ive verified works ok in curl) but translating it to Postman is proving troublesome
curl --insecure --cookie SessionID="==value====" -H âAccept: application/xmlâ --data âsearchCriteria={âcriteriaâ:[{âfieldâ:âdoc_refâ,âoperatorâ:â3â,âvaluesâ:[âdoc_name_to_findâ]}]}â https://adoddleak.asite.com/commonapi/documentsearchapi/search>documentsearch.xml
the main problem i seem to be having is that its a form encoded post with a parameter that contains a json object (rather than a flat body post) and i just cannot figure out how to enter it into postman to make it work
can anyone help me please?
example json object
{
âcriteriaâ:[
{
âfieldâ:âfolder_idâ,
âoperatorâ:1,
âvaluesâ:[â885937637628â]
},
{
âfieldâ:âdoc_refâ,
âoperatorâ:1,
âvaluesâ:[âdoc_name_to_find.pdfâ]
}
],
âgenerateShareLinkâ:âfalseâ,
âread-onlyâ:âtrueâ
}
things ive tried:
importing the curl command as text using the Import system, but it fails with âError while importing Curl: arg.startsWith is not a functionâ
raw post:
âsearchCriteria={âcriteriaâ:[{âfieldâ:âdoc_refâ,âoperatorâ:â3â,âvaluesâ:[âCORP-KMS-LAN-PRC-0023â]}]}â
searchCriteria={âcriteriaâ:[{âfieldâ:âdoc_refâ,âoperatorâ:â3â,âvaluesâ:[âCORP-KMS-LAN-PRC-0023â]}]}
etc
x-www-form-urlencoded
attempted arrays using the postman array system
im either so far off the mark its silly or im missing something super basic and stupid.
cheers,
M