AppEngine Standard urlfetch Host header

49 views
Skip to first unread message

Will Reiher

unread,
Mar 2, 2020, 6:57:47 PM3/2/20
to Google App Engine
Hello App Engine team or anyone that might know - I'm running into a bit of a wall. I need to update to a new AWS API that now requires the host header to have specific content which is part of an HMAC signed request.

In my case it's "host: webservices.amazon.com" when I'm making requests to https://webservices.amazon.com/paapi5/

I wired everything up but - as you know - urlfetch kills/replaces the host header. I can't tell what it's replacing it with and I'm not sure if there is work around. I can't leave it off but perhaps if I knew what it was putting in the header as a replacement I would be able to match the signature. As it stands now my requests are not valid.

Will Reiher

unread,
Mar 2, 2020, 7:02:48 PM3/2/20
to Google App Engine
Thanks - solved my own problem. It was the user-agent being re-written not the host as I suspected.

Claude V

unread,
Apr 22, 2020, 11:06:24 AM4/22/20
to Google App Engine
Reply all
Reply to author
Forward
0 new messages