I've a *.php file in my host "http://www.mysite.com/upload.php". "upload.php" contain upload code. How can i use CHttpConnection and CHttpFile to send request to "upload.php" to upload a file to my host?(Like web browser).
Edited bythanhvinhWednesday, July 29, 2009 4:57 PM
1. Create a CInternetSession. 2. Use the session to get CHttpConnection. 3. Call CHttpConnection::OpenRequest() to get CHttpFile. 4. Call CHttpFile::SendRequest() to send request. 5. Call CHttpFile::QueryInfoStatusCode() to query the status.