c++ - Empty response from post request to https url -


i trying response server using post method, works if server has http address. if try response similar server has https url, empty response. when check logs server, see request did not reach server @ all. using sockets connect server. not sure going wrong. appreciated. here code:

#include <iostream> #include <winsock2.h> #include <winsock.h>  #include <ws2tcpip.h>  #include <iphlpapi.h> #include "httprequest.h" #include <windows.h>     // following code in main()  // code connect server (port used 443) return succesfully. socket socket = connecttoserver(strip);  // returns me size of request int iresult = send(socket , request.tostring().c_str(), requestlength - isent, 0 );  // returns me 0 https server url // tried msg_waitall\0 results same char buffer[10054]; iresult = recv(socket , buffer, 10054, msg_waitall);  // returns 0 indicating no error. int err = wsagetlasterror(); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -