• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IIS: Default upload handling?

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
application is deployed on IIS 6.0

any inputs will be help.

many thanks
neeraj
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic