[ 
https://issues.apache.org/jira/browse/NIFI-3280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982968#comment-15982968
 ] 

ASF GitHub Bot commented on NIFI-3280:
--------------------------------------

Github user trixpan commented on the issue:

    https://github.com/apache/nifi/pull/1395
  
    @nickcarenza thanks for the PR, much appreciated.
    
    I was going through it and got myself wondering:
    
    Is there any reason why we are doing this when InvokeHTTP processor cater 
for the very same need (i.e. POST followed by content to attributes)
    
    From its documentation:
    
    > **Put Response Body In Attribute**
    > 
    > _If set, the response body received back will be put into an attribute of 
the original FlowFile instead of a separate FlowFile. The attribute key to put 
to is determined by evaluating value of this property. 
    > Supports Expression Language: true_
    
    Keen to understand the reason as I suspect I am missing something


> PostHTTP Option to write response to attribute or flowfile content
> ------------------------------------------------------------------
>
>                 Key: NIFI-3280
>                 URL: https://issues.apache.org/jira/browse/NIFI-3280
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Nicholas Carenza
>            Priority: Minor
>
> Currently there doesn't seem to be a way to access anything about the 
> response of an HTTP request from the PostHTTP processor other than whether it 
> failed or succeeded.
> I would like to be able to:
>  - store the response body in an attribute or replace the flowfile content
>  - store the status code in an attribute



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to