Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

Save file through http on a different server

Thread view: 
Darko Stipcevic - 27 Jun 2005 12:58 GMT
Hello!

Can I somehow store file through http request?

My Java process is running on test2 machine and I would like to
store file on a test1 machine. Both servers are located in the same domain.

Example:
http:\\test1\directory_something\my_file.xml

is readable from test2 but how to store some file to this location?

Thx!
Thomas Weidenfeller - 27 Jun 2005 13:17 GMT
> Can I somehow store file through http request?

Why HTTP?

> Example:
> http:\\test1\directory_something\my_file.xml
>
> is readable from test2 but how to store some file to this location?

You need a web server which supports PUT requests (rare), or you could
try you luck with POST requests and some CGI to move the POST's body to
the desired location.

You could also consider using the WebDAV extensions to HTTP (and a
WebDAV capable server or server module) in case you need to have finer
control.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.