redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Friday 03 September 2010 04:51

Ask your IT question here

jerichoHTML parser


Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum
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
Ill have a look for a osx one
Reply with quote
 
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
What am i trying to look for on the network?
Reply with quote
 
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
No im on osx
Reply with quote
 
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
And im vpn in at the moment
Reply with quote
 
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
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Based on phpBB © 2001-2010 RedHo