Results 1 to 3 of 3
  1. #1
    dan0 is offline Member
    Join Date
    Feb 2009
    Posts
    40
    Rep Power
    0

    Default Uploading files to server via HTTP

    I have a collection of files that I'd like to send to a server via HTTP. On the server's end, I plan on using a PHP script to accept the posted data, as it would a "multipart/form-data" encoded form and process it.

    It was recommended that I use Apache's HttpClient to encode the file data in "multipart/form-data" format.

    1. Can someone help understand how to work with Apache's HttpClient? - i.e. if you have code that makes use of HttpClient, please share it or alternatively, a bullet-point guide. I went to Apache's site and reviewed their documents and examples, but they were more confusing then helpful.

    2. If someone knows of an alternative way to do the aforementioned, please share that as well.

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    439
    Rep Power
    6

    Default

    is it the right place for your Thread?
    Mak
    (Living @ Virtual World)

  3. #3
    dan0 is offline Member
    Join Date
    Feb 2009
    Posts
    40
    Rep Power
    0

    Default

    Quote Originally Posted by makpandian View Post
    is it the right place for your Thread?
    Well, I am "new to java" hence I posted in the "new to java" forum. If you know of a better place for me to post my thread, please let me know.

Similar Threads

  1. Transfering files over HTTP
    By DannyZB in forum Networking
    Replies: 16
    Last Post: 11-09-2008, 09:50 PM
  2. Run servlet in HTTP server
    By jithan in forum New To Java
    Replies: 25
    Last Post: 10-16-2008, 10:10 AM
  3. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 04:30 PM
  4. uploading files
    By javaplus in forum Java Applets
    Replies: 1
    Last Post: 01-13-2008, 10:14 PM
  5. Uploading files to FTP
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-19-2007, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •