Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Wininet challenges in C/C++

Hey everyone

Wininet, thats where I am having sort of a battle today, suppose I want to call one of the win api to send to a php server after calling the internetOpen(), internetConnect(), httpopenRequest(), then it's the send request, but here I would be sending 2 parameters hence I wanted to craft it in this manner
Code
InternetOpen()
InternetConnect()
HttpOpenRequest()
bool res = HttpSendRequest(
            hFile,
            "Content-type: application/x-www-form-urlencoded",
            -1,      "firstname=%s&lastname=%s",fname,lname,
            dataLen
        );

Having confusions here as it's my first time trying out like this here, do I appear doing this correctly?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by AdmirablyJul 4, 2018 11:08 PM 5 148 Jul 4, 2018 11:08 PM
Last Post: Willful
by SIM-2015410Aug 20, 2016 05:08 PM 8 313 Aug 20, 2016 05:08 PM
Last Post: Steve Miller
[Help] by evolution™Nov 17, 2015 01:29 PM 1 76 Nov 17, 2015 01:29 PM
Last Post: code42fun