Page 1 of 1

How to access Request headers from server code

Posted: Mon Apr 18, 2016 4:49 pm
by apollo mcowiti

Why do i need this?: an external API sends a POST message with some extra information in the request header that i need access to.

Does the appery.io backend allow to access to request headers from server code?

I saw someone else request this capability about 1 year ago.

If not currently allowed:

(i) Are there any alternative ways to get to this info ( the external API will certainly not change their API to send me that info as a request parameter, so do not suggest that)?
(ii) Are there plans to add this?


How to access Request headers from server code

Posted: Mon Apr 18, 2016 6:08 pm
by Serhii Kulibaba

Hello,

Sure, it is possible, please look at this documentation page, how to use them: https://devcenter.appery.io/documenta...


How to access Request headers from server code

Posted: Mon Apr 18, 2016 6:34 pm
by apollo mcowiti

Thanks for responding fast
It's not obvious to me, but i will try it out.


How to access Request headers from server code

Posted: Mon Apr 18, 2016 6:46 pm
by apollo mcowiti

Thanks, that worked.