25-04-20 06:19 PM
27-04-20 08:13 AM
27-04-20 10:32 AM
25-02-22 01:04 PM
25-02-22 01:09 PM
25-02-22 01:22 PM
25-02-22 01:35 PM
25-02-22 03:14 PM
13-03-23 05:30 AM
Hello Eric,
I appreciate your feedback.
I have come across the same situation where I am receiving a binary response for a PDF file as text via Web Api and I need to download/store this pdf in local system. Following your advice, I attempted to resolve the issue, but I encountered an error. Interestingly, I received a binary response in Postman and a binary as text response in WEB API using the same input configuration, indicating that there is no authentication issue. I have included screenshots for your reference.
I would greatly appreciate your assistance and guidance in resolving this issue.
13-03-23 06:24 PM
An HTTP 500 is a server side error. So there's something about your request that the server doesn't like. It doesn't look like you're including anything in the way of custom headers using the Headers input Collection or setting the Accept header value. If you're able to make this work in Postman, you should check the Postman console to see what the raw request looks like that Postman is sending. You should be able to see any specific HTTP headers that are being set and determine if you need to include those in your request.
Cheers,