Results 1 to 3 of 3
Thread: Using Java to Download Webpages
- 04-16-2012, 08:05 PM #1
Member
- Join Date
- Oct 2011
- Location
- New Jersey
- Posts
- 44
- Rep Power
- 0
Using Java to Download Webpages
I've had this question for a long time, regarding using java to download and process websites.
The task itself is simple, I have to do a login, and download a page after login. The package i use is apache.httpclient
I used to use Charles to look at what data I submit to forms.
This approach works fine for simple websites. However, for a little bit more advanced website, they using https, and I started to lose track when I used Charles to watch data transmission, there are a dozens data/pages poping out. I tried a few naive data posting and can't seem to log in with success.
I watched someone else using a excel VBA script to do the exact same task. VBA used an IE api, basically VBA commands IE to do the loggin. That's very easy.
I understand that with java, it's sort of like java is trying to implement a working browser itself, that's why I failed because I don't know what data to send.
Anyone has any insights on this topic?
One approach I am considering is to find a java api to a browser (IE or Mozilla), but it seems nobody even talks about it. my guess is java network programming is just so basic that it does not need an api with a browser to do the job?
Or any suggestion? any software better than charles?
- 04-16-2012, 11:08 PM #2
Re: Using Java to Download Webpages
Moved from Advanced Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-17-2012, 01:31 AM #3
Member
- Join Date
- Oct 2011
- Location
- New Jersey
- Posts
- 44
- Rep Power
- 0
Similar Threads
-
Deployment of JSP and other language webpages on same server???
By anup1710 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 02-01-2011, 04:48 PM -
Download java 3d lib
By Dennis in forum Java 2DReplies: 43Last Post: 09-15-2010, 10:05 AM -
Pass parameter from one applet to another applet in different webpages...
By anubhavranjan in forum Java AppletsReplies: 2Last Post: 09-29-2009, 03:33 PM -
how to download using java
By leonard in forum Advanced JavaReplies: 1Last Post: 08-06-2007, 05:36 PM -
Java and Webpages
By maniaco in forum New To JavaReplies: 1Last Post: 07-25-2007, 08:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks