I cannot get my code to work :/
相关问题
- Angular RxJS mergeMap types
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
I couldn't find an easy and complete code of how to use wininet with c/c++ so from bits and pieces i wrote an easy and simple c code for someone that visits in future and cant figure out.The code can upload any file(binary,text,mp3....) to hostname you specify,for backend i use php(below code).
and here is the php code i use along with it
Eventually I found some working example on the web
Here's a quick example from Microsoft.
The example comes from here.
MSDN has a good example SAMPLE: Using HttpSendRequestEx for Large POST Requests
it also contain a ASP file for HTTP server to receive data, please download the self-extract file 'Hsrex.exe' in msdn page.