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
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
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.
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
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
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
Joined: Nov 25, 2003
Posts: 315
posted
0
application is deployed on IIS 6.0
any inputs will be help.
many thanks
neeraj
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
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
Joined: Nov 25, 2003
Posts: 315
posted
0
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
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
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.