Hello, i try to upload datas to a server that use a php script.
i have to post to "www.adress.com/fichier.php
the script verify the datas, it should be formated as L=jean&P=dupont&Content=fi
filedata should be binaries datas...
i' v tryed many solution but can get it work!
BYTE* pBuffer1 = new BYTE[(UINT)ulSourceFileSiz
static TCHAR hdrs = _T("Content-Type: multipart/form-data");
HINTERNET hSession = ::InternetOpen("VPS",
HINTERNET hConnect = ::InternetConnect(hSession
HINTERNET hRequest = HttpOpenRequest(hConnect, "POST", "/monscript.php", NULL, NULL, 0, 0, 1);
TCHAR* cb = new TCHAR[ss.GetLength()];
hdrs, strlen(hdrs), pBuffer1, (DWORD)pBuffer1.GetLength(
int i = 0; // i always pass here but nothing happen on server
So my question is : How can i get it work ? why if i pass a correct string with all the data (exept fila data) in IE it work,
and how to have the respnse of the server (the script respond like "transaction failes or transaction ok)?
thanks in advance...
ps : how to accepts a response on xpert xchange ?