POCO C++ - NET SSL - how to POST HTTPS request

后端 未结 1 1653
南旧
南旧 2020-12-05 08:56

How to correctly do a POST to HTTPS server and embed the login data correctly. Below code does not return any cookies (in Wininet it does). I wonder how POCO HTTP library ha

相关标签:
1条回答
  • 2020-12-05 09:03

    You are setting content type like this:

    req.setContentType("Content-Type: application/x-www-form-urlencoded\r\n");
    

    which should be:

    req.setContentType("application/x-www-form-urlencoded\r\n");
    
    0 讨论(0)
提交回复
热议问题