redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

jerichoHTML parser


Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Web Design Forums -> JAVA programming forum
View previous topic :: View next topic  
Author Message
Shirley Kidman



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



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



Joined: 21 Jun 2006
Posts: 30
Ill have a look for a osx one
  Reply with quote
Nicolas Murphy



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



Joined: 21 Jun 2006
Posts: 30
What am i trying to look for on the network?
  Reply with quote
Nicolas Murphy



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



Joined: 21 Jun 2006
Posts: 30
No im on osx
  Reply with quote
Nicolas Murphy



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



Joined: 21 Jun 2006
Posts: 30
And im vpn in at the moment
  Reply with quote
Nicolas Murphy



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    Web Design Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

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

Powered by phpBB © 2001, 2005 phpBB Group