Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I Upload File on HTTP server using WININET/MFC

140 views
Skip to first unread message

shrikant...@gmail.com

unread,
Jan 15, 2008, 7:50:09 AM1/15/08
to shrikan...@pxlsoft.com
Respected.
Q.1. How to Upload File on HTTP server using Wininet/mfc.
(HttpsendRequest).
Q.2. What is the way to Upload if i does not have acuess to write on
server.
Q.3 What about Server / Cilent side Authentication.How to Do?
(InrnetSetOption).
Q.4. I can stop sending POST message doing some proxy setting on
client side?
Thanks

Kellie Fitton

unread,
Jan 15, 2008, 9:54:33 PM1/15/08
to


Hi,

You can use the following APIs to Get/Post internet requests
to the HTTP server:

InternetOpen() INTERNET_OPEN_TYPE_PRECONFIG

InternetConnect() INTERNET_DEFAULT_HTTP_PORT,
INTERNET_SERVICE_HTTP

HttpOpenRequest() INTERNET_FLAG_NO_CACHE_WRITE

HttpSendRequestEx()

HttpQueryInfo() HTTP_QUERY_CONTENT_LENGTH

InternetQueryDataAvailable()
InternetReadFileEx()
InternetWriteFile()
HttpEndRequest()
InternetCloseHandle()

InternetGetLastResponseInfo()

http://msdn2.microsoft.com/en-us/library/aa385096.aspx

http://msdn2.microsoft.com/en-US/library/aa384363.aspx

http://msdn2.microsoft.com/en-us/library/aa384233.aspx

http://msdn2.microsoft.com/En-US/library/aa384318.aspx

http://msdn2.microsoft.com/en-us/library/aa384238.aspx

http://msdn2.microsoft.com/en-us/library/aa385100.aspx

http://msdn2.microsoft.com/en-us/library/ms918376.aspx

http://msdn2.microsoft.com/En-US/library/aa385128.aspx

http://msdn2.microsoft.com/en-us/library/ms906345.aspx

http://msdn2.microsoft.com/en-US/library/aa384350.aspx

http://msdn2.microsoft.com/en-us/library/aa384717.aspx

Kellie.

0 new messages