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.

Progress of http post

Thread view: 
oetting - 19 Jun 2005 22:22 GMT
Hi
I am posting some files to a server via http through java. And it all
works very well. But now i want to add a progressmonitor to my
transfer, because they take some time.
But i can't find any way to get notified during the transfer. Only
before and after. All the data is transfered to the outputstream and
then it is transfered. And i dont know how to get any info during this
transfer.
I don't need any gui stuff just some simple output to the terminal
during the transfer.

Can anyone help me?

/Jacob
Frank Gerlach - 20 Jun 2005 22:08 GMT
> Hi
> I am posting some files to a server via http through java. And it all
> works very well. But now i want to add a progressmonitor to my
> transfer, because they take some time.
What about writing your HTTP classes yourself ? Then it should be easy to
to implement a progress bar or similar stuff. The GET and POST methods are
not really difficult to implement.
Get yourself a copy of "curl" and run it like this:
curl -v http://an.interesting.host/with/a/file.html
It should give you an idea of the HTTP protocol...
> But i can't find any way to get notified during the transfer. Only
> before and after. All the data is transfered to the outputstream and
[quoted text clipped - 6 lines]
>
> /Jacob


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.