最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Google Maps Static API request isn't working over https and http2 (h2) - Stack Overflow

programmeradmin0浏览0评论

I have a webpage served over https which should display an image created via the Google Maps Static API. I try to create the map image by making a request to the API via http like this:

<img src=";signature=MY_SIGNATURE"/>

But in Chrome > "Inspect" > "Network" tab I see request to ";signature=MY_SIGNATURE" (via http2, I guess)

Also when I try to execute ";signature=MY_SIGNATURE" request via browser address bar I get 400 error with error message "Your client has issued a malformed or illegal request".

When I'm trying to send http and https request via Postman I'm getting next results:

  • http + http1.1 -> response 200
  • http + http2 -> response 200
  • https + http1.1 -> response 200
  • https + http2 -> response 400 (Error message: "Your client has issued a malformed or illegal request")

Can anybody tell me what's going on here?

发布评论

评论列表(0)

  1. 暂无评论