Dan's homepage
httppostex is a simple (and unoptimized; read: needs more file streams) HTTP POST example using the Win32 / WinInet API, written in c/c++.

The sample provided posts a single file to and prints what the server returns (the url of the uploaded file, in stashbox’s case).
While the example only uploads one file to the site, it is setup to accomodate multiple files if the backend script accepting the POST will accept them.
Why stashbox? Well, this code was the basis for the console / experimental shell uploader, which was thankfully sexed up by Joshua Teitelbaum.

Probably the pitfall of the example, as it now sits, is that it loads each file completely into memory before POSTing it, rather than using file streams or something similar.
Good enough to get you going, though. =)

Copyright (C) 2005-2006 Daniel Green

This software is provided ‘as-is’, without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.


Version History
02/23/2006 – httppostex 0.1
* Initial release

Notice: link_pages is deprecated since version 2.1! Use wp_link_pages() instead. in /deepspace/backup/web/web/virtuals/ on line 3378