Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CE060200C1D for ; Thu, 2 Feb 2017 02:38:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CC9B9160B5E; Thu, 2 Feb 2017 01:38:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 23AEF160B46 for ; Thu, 2 Feb 2017 02:38:56 +0100 (CET) Received: (qmail 95445 invoked by uid 500); 2 Feb 2017 01:38:56 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 95436 invoked by uid 99); 2 Feb 2017 01:38:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2017 01:38:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D1A481806AB for ; Thu, 2 Feb 2017 01:38:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cLpP4y50K_Dc for ; Thu, 2 Feb 2017 01:38:55 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BBD8A5F177 for ; Thu, 2 Feb 2017 01:38:54 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C219FE01D8 for ; Thu, 2 Feb 2017 01:38:51 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 80D1925286 for ; Thu, 2 Feb 2017 01:38:51 +0000 (UTC) Date: Thu, 2 Feb 2017 01:38:51 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-819) Allow specification of headers for GetHTTP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Feb 2017 01:38:58 -0000 [ https://issues.apache.org/jira/browse/NIFI-819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15849251#comment-15849251 ] ASF GitHub Bot commented on NIFI-819: ------------------------------------- Github user trixpan commented on a diff in the pull request: https://github.com/apache/nifi/pull/1462#discussion_r99038321 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java --- @@ -467,6 +486,18 @@ public void onTrigger(final ProcessContext context, final ProcessSessionFactory if (accept != null) { get.addHeader(HEADER_ACCEPT, accept); } + + // Add dynamic headers + + PropertyValue customHeaderValue; + for (PropertyDescriptor customProperty : customHeaders) { + customHeaderValue = context.getProperty(customProperty).evaluateAttributeExpressions(); --- End diff -- I considered that but refrained from it due to: https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GetHTTP.java#L99 > Allow specification of headers for GetHTTP > ------------------------------------------ > > Key: NIFI-819 > URL: https://issues.apache.org/jira/browse/NIFI-819 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions > Affects Versions: 0.2.1 > Reporter: Aldrin Piri > Assignee: Andre > Priority: Minor > Fix For: 1.2.0 > > > There is currently no way to provide additional headers for requests through GetHTTP. Some endpoints may require a token or other information to access information. Currently, it is possible to work around this with an InvokeHttp driven by a dummy file, but interpretation of dynamic properties added as additional headers would provide a better option. -- This message was sent by Atlassian JIRA (v6.3.15#6346)