Discussion:
help uploading with InternetWriteFile and GET method
(too old to reply)
Slimane0870
2008-10-06 18:46:01 UTC
Permalink
Hi,

I have a problem trying to upload a file which has a size > 200KB on Windows
XP with IIS5.1. I just call InternetWriteFile with the method GET and an
error occured after a while indicating that the connection has been reset.
The file has started to be uploaded, but the operation fails after 65KB. The
problem occurs when I'm uploading from another workstation. When the
operation is done onto the server, it works fine. The same operation with
POST is working fine even other the network.

I can say that my code works on some network, but not on others. Is there a
GPO, a configuration which prevent doing such operation?

Many thanks for your help
--
Chief Sofware Engineer
Ari Pernick [MSFT]
2008-10-07 21:55:01 UTC
Permalink
Try grabbing NetMon (http://blogs.technet.com/netmon/) and getting a sniff.
Look for who is closing the connection and if there is any weird delays
occuring.

-- Ari

This posting is provided "AS IS" with no warranties, and confers no rights
Post by Slimane0870
Hi,
I have a problem trying to upload a file which has a size > 200KB on Windows
XP with IIS5.1. I just call InternetWriteFile with the method GET and an
error occured after a while indicating that the connection has been reset.
The file has started to be uploaded, but the operation fails after 65KB. The
problem occurs when I'm uploading from another workstation. When the
operation is done onto the server, it works fine. The same operation with
POST is working fine even other the network.
I can say that my code works on some network, but not on others. Is there a
GPO, a configuration which prevent doing such operation?
Many thanks for your help
--
Chief Sofware Engineer
Ari Pernick [MSFT]
2008-10-07 22:15:01 UTC
Permalink
I just reread this.
GET Requests by definition don't have request Entity Body, so you are
working with undefined behavior. On a local machine, there is a bigger buffer
for you to shove your bits into before the server realizes that you did
something invalid and closes the connection. On a remote host I would bet the
a bunch of the excess data doesn't have a chance to send before the server
realizes that the request is invalid. Look at the network sniff to validate.

-- Ari

This posting is provided "AS IS" with no warranties, and confers no rights
Post by Slimane0870
Hi,
I have a problem trying to upload a file which has a size > 200KB on Windows
XP with IIS5.1. I just call InternetWriteFile with the method GET and an
error occured after a while indicating that the connection has been reset.
The file has started to be uploaded, but the operation fails after 65KB. The
problem occurs when I'm uploading from another workstation. When the
operation is done onto the server, it works fine. The same operation with
POST is working fine even other the network.
I can say that my code works on some network, but not on others. Is there a
GPO, a configuration which prevent doing such operation?
Many thanks for your help
--
Chief Sofware Engineer
Loading...