opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jwebunit-users@lists.sourceforge.net 16 October 2009 • 11:54PM -0400

[JWebUnit-users] http 407 - proxy error
by Nuno Feliciano

REPLY TO AUTHOR
 
REPLY TO GROUP






Hi,

I'm having a problem using a proxy server in an "NTLM environment".

Hi wrote this simple client

public class MyTester extends WebTestCase {
      
        String url = "http://www.google.pt/";  
      
        public void setUp() throws Exception{          
                super.setUp();
                String user = "UUUUU";
                String pass = "XXXXX";
                String domain = "domain";
                String proxyHost = "proxyHost";
                int proxyPort = 8080;
              
                getTestContext().setNTLMAuthorization(user, pass, domain);
                getTestContext().setProxyAuthorization(user, pass, proxyHost, proxyPort);                              
                setBaseUrl(url);              
        }

        public void test1() {
              
                beginAt("/");
                setTextField("q", "java");
                submit();
                String source = getPageSource();
                System.out.println(source);
        }

        public static void main(String[] args) {
                try {
                        TestRunner.run(new TestSuite(MyTester.class));                
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }
}

I get the error "The server return 407 HTTP code"

I checked that the user, password, domain, proxy host and port are all correct.
What could be the problem?


Thanks in advance,
Nuno Feliciano
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@list...
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.