alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.01k stars 774 forks source link

Pass Header Parameters with the URL #26

Closed sabya14 closed 5 years ago

sabya14 commented 6 years ago

How to send authentication parameter along with the url ??

trying something like this but failing http://abc.abc.com:9000/api/render?url=http://abc.abc.com&setExtraHTTPHeaders={'header': 'value'}

pendexgabo commented 6 years ago

@sabya14 how are you planning on calling the service ? with curl?

kimmobrunfeldt commented 5 years ago

I haven't been personally using the different request parameters with this service, but the direction I'd want to see is to have full control to the request being made: https://github.com/alvarcarto/url-to-pdf-api/pull/99.

kimmobrunfeldt commented 5 years ago

Let's continue discussion here https://github.com/alvarcarto/url-to-pdf-api/pull/99