P
P
pthon2019-08-09 04:20:41
Java
pthon, 2019-08-09 04:20:41

How to programmatically send a file?

For example, there is a site with a form (which sends data by POST) for uploading a file. So, is it possible to implement downloading a file from a computer in java?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2019-08-09
@leahch

You need http client libraries. And we have them, okhttp or httpclient hc.apache.org. And even the built in java httpclient api. I prefer the first two, but there are many more of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question