Posting a file to a URL with HttpClient

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
LVL 1
avernetAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
e.g.

<INSTALL DIR>/src/examples/PostXML.java
0
 
CEHJCommented:
There are examples with the download
0
 
avernetAuthor Commented:
CEHJ,

Excellent; it works perfectly, thank you.

Alex
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.