The users.get method on the documentation website in the calculator issues avatars on https, like

 https://pp.vk.me/c306801/v306801932/25e3/xxxxxx.jpg 

and on my website, where api is used for authorization, the same request issues avatars on http of the form

 http://cs306801.vk.me/v306801932/25e3/xxxxxx.jpg 

I changed the version of the API in the request for the latter, but this does not affect in any way.

Apparently, the avatar address can be converted on the fly, but I would like the API to give out an https address right away.

What could be the problem?

  • Write to them in technical support - etki
  • Probably the answer depends on the protocol of the site from which the request comes. Site protocol from which you are testing - https? - zig1375

1 answer 1

To get an avatar via https, you must explicitly specify the https = 1 parameter when prompted. Here is https://vk.com/dev/api_requests in the section "Passing parameters to the API":

https - 1 - allows you to get https links to photos and other media. 0 - methods return http links (by default). Please note that this option only works if API requests are made via https.