Search code examples
apipostmanfiddler

How will I get success in Postman?


Using Fiddler, I'm able to get the used params and Filename. Same thing I want to run in Postman. How can I do tjhat?

Fiddler: API Details from Fiddler

Please note that I'm getting 200 in Fiddler. In postman I'm getting 400.

See How I'm passing in Postman: Inside Postman -> Body -> row:

Inside Postman -> Body -> binary -> Select File: I'm attaching the same file.

File name is: dummy.pdf But in Fiddler name is coming dummy.pdf2_6_2020.pdf

Postman Response:

{
    "head": {
        "StatusValue": 400,
        "StatusText": "Failed"
    },
    "body": {
        "Error": [
            {
                "status_value": 0,
                "status_text": "Invalid File"
            }
        ]
    }
}

Solution

  • You can probably use form data in postman for this purpose. I have highlighted it in snapshot. Give name and value as you have given in Fiddler. I hope this helps.See red lines in snapshot.