Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Trying to send a PostHTTP in NiFi with a "non-chunked" payload.

avatar
New Member

I am trying to create a POST in Nifi, which carries a standard non-chunked payload.

Here is a POST request that works:

POST / HTTP/1.1 Host: 127.0.0.1:8085 User-Agent: curl/7.43.0 Accept: */* Content-Length: 60 Content-Type: application/x-www-form-urlencoded client_id=test_id&secret=test_secret&access_token=test_wells 

Here is the POST request created in Nifi using PostHTTP. The setting are "Send as FlowFile" is false; "Use chunked encoding" is false. Why does the POST below show chunked encoding to be enabled?

POST / HTTP/1.1 
Content-Type: application/x-www-form-urlencoded 
x-prefer-acknowledge-uri: true 
x-nifi-transfer-protocol-version: 3 
x-nifi-transaction-id: 22297370-a69e-4210-b872-f010c2046c50 
Transfer-Encoding: chunked
Host: 127.0.0.1:8085 
Connection: Keep-Alive 
User-Agent: Apache-HttpClient/4.4.1 (Java/1.7.0_79) 
3c 
client_id=test_id&secret=test_secret&access_token=test_wells
1 ACCEPTED SOLUTION

avatar

Hello

You've run into a bug. https://issues.apache.org/jira/browse/NIFI-1396, https://issues.apache.org/jira/browse/NIFI-21

Has been around for quite a while but someone else ran into recently. Should be sorted soon but if you're interested in contributing a fix please let us know.

Thanks

Joe

View solution in original post

1 REPLY 1

avatar

Hello

You've run into a bug. https://issues.apache.org/jira/browse/NIFI-1396, https://issues.apache.org/jira/browse/NIFI-21

Has been around for quite a while but someone else ran into recently. Should be sorted soon but if you're interested in contributing a fix please let us know.

Thanks

Joe