nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Huachao Zhang <chaoye...@gmail.com>
Subject Form authentication issue
Date Thu, 08 Oct 2015 08:22:58 GMT
Hi,

I was trying to use the form authentication feature in nutch, I have set
the httpclient-auth.xml like this:

<auth-configuration>
    <credentials authMethod="formAuth"
                loginUrl="http://www.arguntrader.com/ucp.php?mode=login"
                loginFormId="login"
                loginRedirect="true">
     <loginPostData>
       <field name="username"
              value="xxxx"/>
       <field name="password"
              value="xxxx"/>
     </loginPostData>

   </credentials>
</auth-configuration>


And, I'm getting "java.lang.RuntimeException:
java.lang.IllegalArgumentException: No form exists: login"

I'm pretty sure the id of the form is "login", and I set
protocol-httpclient in nutch-site.xml

Thanks in advance!

Best,
Chao

Mime
View raw message