Discussion:
WinHttpSetTimeouts
(too old to reply)
s***@gmail.com
2008-10-09 04:06:10 UTC
Permalink
what is the Server configration Do you need to upload the bigger
file.

I facing problem to uplaod file with size greater than 1MB, And
server giving me the server time out is 6000, I try change it using
WinHttpSetTimeouts ( i set it to 900000 milisec) but Still i am not
able to upload the file.
1. Explian me ---- Any Setting are required at server end, is max
file
size is defined on server.
2. What will Cilent application do for sucessful upload the file.
Server Info : Tomcat
Cilen Application - In MFC using winhttp for communication
Roman Ryl...
2008-10-21 19:20:40 UTC
Permalink
Hi,

Are you using WinHttpSetTimeouts with a session or request handle? Do
you change all four timeout arguments to 15 minutes?

Roman
s***@gmail.com
2008-11-01 03:47:18 UTC
Permalink
Hi,
Are you usingWinHttpSetTimeoutswith a session or request handle? Do
you change all four timeout arguments to 15 minutes?
Roman
Thanks;
I have sucessfully upload the file.
Using Session handle.
who can i set the time out depending on file size
e.g As file size increases time out time also increases.
WinHttpSetTimeouts(m_hInternetSession,180000,380000,400000,900000)

Will Please help me for following
1) I want to communicate through Certificate.But for time being i
ignore the Certificate.
dwFlags = SECURITY_FLAG_IGNORE_UNKNOWN_CA |
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |
SECURITY_FLAG_IGNORE_CERT_CN_INVALID |
SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE;
How to do this Certificate authentication before any request send to
the server.

Loading...