HTTP calls in Java?

I want to send a file which is created from within the java process. this file is then sent via HTTP calls.

Do i need to write a program to make a HTTP call?

I have heard alot about HTTP call?
How is HTTP call used for? any configuration i need to take care of?

Please advise
LeanMoreTryMoreAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
objectsCommented:
What exactly is it you want to do?
0
 
LeanMoreTryMoreAuthor Commented:
transfer the file via HTTP
Someone mentioned it needs to use SOAP,

For example, i got a data file, i want to transfer the file to another location via http..
0
 
objectsCommented:
What will be recieving it at the other location?  Or do you need to also write the server side?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
LeanMoreTryMoreAuthor Commented:
it would be java-based web application server or mircosoft comptiable web server like IIS

we need to support our different clients. some are using tomcat some using IIS
0
 
objectsCommented:
you'll still need somewthing on the web container to handle the upload requests. eg. a servlet
0
 
Mayank SAssociate Director - Product EngineeringCommented:
You can try the FileUpload API from Apache for uploading the file:

http://jakarta.apache.org/commons/fileupload/
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Or assuming that the server is already in place, you can use this to post the file to the server using HTTP POST:

http://www.javaalmanac.com/egs/java.net/Post.html
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
Jim CakalicSenior Developer/ArchitectCommented:
And yet another option ... "the HttpClient component may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication."
    http://jakarta.apache.org/commons/httpclient/

Jim
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.