Cannot upload file - 501



Hi,

First, I'm fairly new to using/administrating IIS. So, speak slow and in a clear voice ;-)

I'm writing a mobile application (currently testing on a PC) where I need to send a potentially large file (up to 2MB) to the web server. The web server is IIS 5.1 on Windows Server 2003 R2 (SP2). I'm using WinInet functions to do the request and transfer of the file. I finally and successfully achieved sending the large file on my local Windows XP Pro PC. The errors that I'm getting (from the logs) are:

PUT /Uploads/testfile.xml - 8888 - 192.168.1.111 HTTP 501 0 0 42546

I performed essentially the same actions on both servers (local and remote). I created a virtual directory off of the web site directory and pointed it to the directory where I want the files. I realized this was a "security" issue when, on my local PC, I allowed "write" to both the virtual directory and the physical directory. I tried the transfer and it worked. Now, I'm lost as to what I'm doing wrong on the remote (Win2003) side. I've tried to set the same permissions, but with no success.

I know the process I'm using works, so it is not on my client side. I'm using the HttpSendRequestEx() function to start the file transfer, and InternetWriteFile() function to send the file in blocks. The strange behavior on the remote side is that I can go through the entire write process, but there is no file on the other side. Again, the error code (501) and the security issues are the cause.

Could someone please tell me what I'm doing wrong here and how to fix it?

Thanks,
Kevin
.



Relevant Pages

  • Re: remote control program
    ... The security of the interface has nothing to do with SSL. ... the security of your online banking technology also has nothing to do with SSL. ... If the technology was not properly assessed by a qualified security team then I wouldn't trust it. ... for remote work to the same location who complains about jitter and delay ...
    (Security-Basics)
  • RE: remote control program
    ... consider that you meant back-end security measures when I responded; ... I've never seen a vulnerability reported on them anywhere, ... To get in to the application one does not need credentials, ... when you attempt a remote session. ...
    (Security-Basics)
  • Re: Active Directory/HIPPA Question
    ... The client ... > roll out AD when their top priority this year is securing the applications ... Security is one of the biggest reasons. ... ESPECIALLY if you have 800 remote offices. ...
    (microsoft.public.win2000.general)
  • Re: DomainLocalServer$ is not a valid user
    ... it can be a BIG security hole. ... Local System or Network Service account on a machine makes a remote request ... things have access to your SQL Server. ...
    (microsoft.public.sqlserver.security)
  • [NT] Poisoning Cached HTTPS Documents in Internet Explorer
    ... Get your security news from a reliable source. ... "poison" a user's browser cache with a malicious document that will later ... The attacker can exploit this vulnerability for "replacing" HTML ... to communicate with a malicious web server over HTTPS without the browser ...
    (Securiteam)