Apr 8, 2016 03:29 AM
(This post was last modified: Apr 8, 2016 03:30 AM by Sai Hung.)
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
Having confusions here as it's my first time trying out like this here, do I appear doing this correctly?
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?

