nutch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Nioche <lists.digitalpeb...@gmail.com>
Subject Re: HTTP Post request
Date Thu, 06 Mar 2014 17:01:46 GMT
Hi,

Look at the url-meta plugin. By default the metadata won't be passed to the
crawldatum in the fetchlist.

HTH

Julien


On 6 March 2014 16:20, Zabini <antony.nolison@actimage.com> wrote:

> Hi,
>
> I am trying to develop a plugin to do POST request.
>
> I know that I should extends from the Protocol class and use the Post
> Method
> from HTTP client (https://hc.apache.org/httpclient-3.x/methods/post.html).
> And I can put metadata with the URL like this: www.example.com/postquery
> method=post     param=param1:value1, param2:value2.
>
> My problem is, I can't access the metadata (they are correctly injected I
> have checked it in the Injector and I can see them when I dump the
> database). When I do (in my HttpResponse class)
> datum.getMetaData().get("method") the result is null.
>
> Could someone give me a hint of what to do?
>
> Thanks,
> Zabini
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/HTTP-Post-request-tp4121719.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>



-- 

Open Source Solutions for Text Engineering

http://digitalpebble.blogspot.com/
http://www.digitalpebble.com
http://twitter.com/digitalpebble

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message