Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Jari Bakken
RE: Repeating authorization [ reply ]  
2009-02-19 13:06
I'm not sure unfortunately - try the HtmlUnit list.

By: Taras Shypytiak
Repeating authorization [ reply ]  
2009-02-19 13:03
Appreciate so much for your answer,but could you suggest what is the reason of repeating auth?

By: Jari Bakken
RE: Repeating authorization [ reply ]  
2009-02-19 11:59
Hello Taras

You can turn off logging for the http client to avoid the messages:

java.util.logging.Logger.getLogger("org.apache.commons.httpclient").level = java.util.logging.Level::OFF

Celerity currently has methods for setting _HtmlUnit_'s log level by doing:

Browser.new(:log_level => :off)

or

browser.log_level = :off

I added Browser#credentials= for basic http authentication - check out the the latest gem (0.0.5.6) on GitHub:

http://github.com/jarib/celerity/tree/master





By: Taras Shypytiak
Repeating authorization [ reply ]  
2009-02-19 10:50
Hi all,
I'm sorry for this thread,probably I was wrong to start it,but I've got strange error while running celerity.
When I go to some page,1.1.1.1,for example, I have to authorize,like this:
dcp=DefaultCredentialsProvider.new
dcp.addCredentials("login","pasw")
browser.webclient.setCredentialsProvider(dcp)
browser.goto("http:1.1.1.1")

After authorization I click any link and after every click I get the next message:


Feb 19, 2009 12:39:35 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Feb 19, 2009 12:39:36 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Feb 19, 2009 12:39:36 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
Feb 19, 2009 12:39:37 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected

I tried to find something in Google,but failed,appreciate for any help