Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1521

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

$
0
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="http://maps.googleapis.com/maps/api/staticmap?client=CLIENT_ID&signature=MY_SIGNATURE"/>

But in Chrome > "Inspect" > "Network" tab I see request to "https://maps.googleapis.com/maps/api/staticmap?client=CLIENT_ID&signature=MY_SIGNATURE" (via http2, I guess)

Also when I try to execute "https://maps.googleapis.com/maps/api/staticmap?client=CLIENT_ID&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?


Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>