Solved

Posting a file to a URL with HttpClient

Posted on 2007-03-20
4
186 Views
Last Modified: 2010-03-31
I am looking for some sample Java code showing how to post (HTTP POST method) a file to a URL using the HttpClient library (link below). Anyone has anything like this?

http://jakarta.apache.org/commons/httpclient/

Alex
0
Comment
Question by:avernet
  • 3
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
There are examples with the download
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
Comment Utility
e.g.

<INSTALL DIR>/src/examples/PostXML.java
0
 
LVL 1

Author Comment

by:avernet
Comment Utility
CEHJ,

Excellent; it works perfectly, thank you.

Alex
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:-)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 40
changeXy challenge 13 56
countAbc challenge 9 49
Starting to learn JAVA, 7 47
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now