• Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1, nutchgora
    • Fix Version/s: 1.10
    • Component/s: protocol
    • Patch Info:
      Patch Available


      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.

      1. nutch-http-cookies.patch
        9 kB
        Jasper van Veghel
      2. NUTCH-827-trunk-v3.patch
        27 kB
        Sebastian Nagel
      3. NUTCH-827-trunkv2.patch
        27 kB
        Lewis John McGibbney
      4. NUTCH-827-trunk.patch
        29 kB
        Lewis John McGibbney
      5. http-client-form-authtication.patch
        17 kB

        Issue Links



            • Assignee:
              Lewis John McGibbney
              Jasper van Veghel
            • Votes:
              3 Vote for this issue
              9 Start watching this issue


              • Created: