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