In response to the GET request via the 80th port, the site responds with the 301st code and sends it to a secure page. How to get from him the 200th code? I know that there is a generally accepted openssl, but in principle I don’t know what to do with it and what functions to call in which order, since https at the level below javascript (where everything is on the machine) did not work, but I need to connect from a windows-application site over a secure protocol.

Please tell me the procedure.

  • maybe this will help stackoverflow.com/a/40270207/690987 - Mikhail Vaysman
  • What OS do you have? - Vladimir Martyanov
  • @ Vladimir Martianov, I work in Win10, but the application should work on any Windows, starting from whists - Iceman
  • @Iceman then possible even without cURL, only through WinAPI - Vladimir Martyanov

1 answer 1

You can use the curl library, it is quite able to go through the chain of redirects and supports https if compiled with openssl (it seems to be needed). There is no need to jerk openSSL methods with your hands and the library works on different operating systems.