nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Dzyuba (JIRA)" <>
Subject [jira] [Commented] (NUTCH-827) HTTP POST Authentication
Date Mon, 08 Oct 2012 14:30:03 GMT


Max Dzyuba commented on NUTCH-827:

Hi Jasper,

Thanks, removing that line fixed the exception problem.
At the moment, the log file doesn't have any errors related to HTTPclient plugin or authentication
process. However, my tests show that the cookie can't be read by the test auth page I've set

Is there an easy way to verify if the cookie was created by Nutch and stored as intended?

> HTTP POST Authentication
> ------------------------
>                 Key: NUTCH-827
>                 URL:
>             Project: Nutch
>          Issue Type: New Feature
>          Components: fetcher
>    Affects Versions: 1.1, nutchgora
>            Reporter: Jasper van Veghel
>            Priority: Minor
>              Labels: authentication
>             Fix For: 1.6
>         Attachments: nutch-http-cookies.patch
> I've created a patch against the trunk which adds support for very rudimentary POST-based
authentication support. It takes a link from nutch-site.xml with a site to POST to and its
respective parameters (username, password, etc.). It then checks upon every request whether
any cookies have been initialized, and if none have, it fetches them from the given link.
> This isn't perfect but Works For Me (TM) as I generally only need to retrieve results
from a single domain and so have no cookie overlap (i.e. if the domain cookies expire, all
cookies disappear from the HttpClient and I can simply re-fetch them). A natural improvement
would be to be able to specify one particular cookie to check the expiration-date against.
If anyone is interested in this beside me I'd be glad to put some more effort into making
this more universally applicable.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message