| View previous topic :: View next topic |
| Author |
Message |
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
|
Has anyone had any experience with the jerichoHTML parser?
Http://jerichohtml.sourceforge.net/doc/index.html
Im trying to make my java prog access a web page that is behind a proxy at work
I have vpn'd in fine
But im wondering where i can state my un and pw for the proxy
I tried String sourceUrlString="http://user:pass@sample.com.au/index.php";
But still seem to be getting Exception in thread "main" java.io.IOException: Server returned HTTP response code: 401 for URL:
Any clues?
Reply with quote
|
| |
|
|
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, you have to set the right headers instead of modifying the url
do you have ethereal or any other network sniffer available?
then install it.
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, sniff the traffic from your web browser see what header it sets, sniff the trafic from your java program and see what it sets, fill in the missing ones
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, most probably a Proxy-Authentication header...
unless your proxy uses NTLM and is microsoft only
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, note however that you get a 401 and not a 407 so I am not sure what your proxy expects
Reply with quote
|
| |
|
|
Shirley Kidman Enthusiastic Coder
Joined: 21 Jun 2006 Posts: 30
| |
Nicolas Murphy New Programmer
Joined: 30 Jun 2006 Posts: 12
|
Shirley Kidman, ok, NTML works with IE (and that used to be available on mac)
still, install a good network sniffer and find out
Reply with quote
|
| |
|
|
| Page 1 of 3 |
Goto page 1, 2, 3 Next |
|