Jump to content
magicseb007

Make a pdf file with a REST api response

Recommended Posts

Hi,

 

I'm using Rad Studio C++ Builder and I need to retrieve a PDF with a REST api.

Testing with the postman site, in the body of the response I see the pdf fine and can save it.

Going through C++Builder, I can't save the pdf.

 

Here is the response from the API:

 

Connection=keep-alive
Date=Wed, 19 Oct 2022 13:17:11 GMT
Content-Length=15891
Content-Type=application/pdf
Vary=Origin
Content-Disposition=attachment; filename*=utf-8''-HUGO-concentr%C3%A9_bien-%C3%AAtre-Maux_de_t%C3%AAte-8ml-de0752a5-21c4-49a6-9fa7-1183e9f1ed0d.pdf
X-Frame-Options=DENY
X-Content-Type-Options=nosniff
Referrer-Policy=same-origin
Strict-Transport-Security=max-age=15724800; includeSubDomains


How to get the file or the contents of the file and save it?

 

Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×