• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IIS: Default upload handling?

 
Neeraj Vij
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am able to execute a PUT and Post request for uploading a file using HTTP CLient 3 and HTTp Client 4 as well. The .net application is deployed on IIS 6 server.

I have given the url like test
while uploading the file. I am able to get a 200 OK response after uploading the file. But I am unable to find the file uploaded on the machine where IIS is installed.

Please provide any inputs, where that file will be uploaded.


Thanks
Neeraj



 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on what the server code does with it (which is unrelated to the client code, and so has nothing to do with the HttpClient library). Check with the developer of that application.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf.

developers are not reading the uploaded files.

I am just learning to hack an application where web servers have enabled Http PUT and Delete request. I was trying to upload a file at the server using httpclient.


I understand that, file will not get uploaded unless the developers have written the code to revcieve those files. Please correct me if I have understood it incorrectly.I cannot directly upload a file where web servers have enabled http PUT request.

Thanks
Neeraj


 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that, file will not get uploaded unless the developers have written the code to revcieve those files. Please correct me if I have understood it incorrectly. I cannot directly upload a file where web servers have enabled http PUT request.

Not quite. Some servers may have built-in capabilities to handle uploads (in which case you should check the server's documentation for how that works, and where files will end up).

But you were talking about a .Net application, so I assumed that's what handles the upload.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
application is deployed on IIS 6.0

any inputs will be help.

many thanks
neeraj
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of input are you looking for? If it's not your code that handles the file upload, then it's IIS itself; what does its documentation say about this?
 
Neeraj Vij
Ranch Hand
Posts: 315
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf.

I need inputs regarding the IIS default upload directory. How would IIS handle an uploaded file, if its sent through PUT request without any directory path. its just the host name. like http://www.example.com.

many thanks
Neeraj.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to a more appropriate forum, and fixing the subject to reflect what the issue is really about. IIS isn't often used in conjunction with Java, though, so you may have more luck elsewhere on the web.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic