Author Topic: POST request to HTTPS  (Read 5169 times)


  • Not-a-newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
POST request to HTTPS
« on: May 28, 2012, 09:33:52 PM »
Trying to understand how to make POST request to site with HTTPS so I can use it later if needed, following tutorial describes and shows easy to follow working method of doing this for HTTP.

made a copy and tried to do modify it to work for HTTPS.

  • added openssl dependency
  • set #define OPEN_SSL_CLIENT_SUPPORT 1 in RakNetDefines.h

and then i got stuck, do not know if what i did was correct or what to do next... program connects and sends request, but nothing happens after that.
any tutorials or example code on trying to get this done?

this is as far as i got:
program gets stuck on state 4.

Thank you in advance


  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: POST request to HTTPS
« Reply #1 on: May 29, 2012, 10:07:54 AM »
In void TCPInterface::StartSSLClient(SystemAddress systemAddress) make sure it says

meth = (SSL_METHOD*) SSLv23_client_method();

Also, I don't know if post commands necessarily send anything back. But you can put a breakpoint in HTTPConnection::ProcessTCPPacket(Packet *packet). If it gets into there you got something back.