• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

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
0
avernet
Asked:
avernet
  • 3
1 Solution
 
CEHJCommented:
There are examples with the download
0
 
CEHJCommented:
e.g.

<INSTALL DIR>/src/examples/PostXML.java
0
 
avernetAuthor Commented:
CEHJ,

Excellent; it works perfectly, thank you.

Alex
0
 
CEHJCommented:
:-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now