Solved

Posting a file to a URL with HttpClient

Posted on 2007-03-20
4
220 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
ID: 18760116
There are examples with the download
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 18760137
e.g.

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

Author Comment

by:avernet
ID: 18765983
CEHJ,

Excellent; it works perfectly, thank you.

Alex
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18766289
:-)
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Opening PDF on button click and fill new document 2 54
how to see all occupied ports on windows 10 laptop 15 85
jboss 7.1 start up error 1 64
CSV file parsing thru Java 13 40
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…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

730 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