Need help on downloading a text file from a site using HttpsUrlConnection java class

时间:2015-05-08 09:53:47

标签: java

I want to read the content of a text file which is located in the site

https://www.frbservices.org/EPaymentsDirectory/FedACHdir.txt

I want to read it using Java . I started it with using HttpsUrlConnection Class .

When we take the above URL in the browser , we will first redirect to a agreement page and if we click the agree button , we can see the text file . How we can do the same procedure using HttpsUrlConnection class ?

This is what I tried:

myFunction(new Struct(x,y));

Any inputs will be highly appreciable

0 个答案:

没有答案