Content-Length of event
Description
Gliffy Diagrams
Activity
Show:

Jose M. G. March 15, 2013 at 7:55 AM
Hi,
is true, but not exactly what I had thought.
That way you get the content-length but you lose the ability to customize the content of the post.
You can not send in the POST content like this:
name1 # # name2
Just json format.
In contrast, the tcp output can generate POST request and absolutely give the desired format except the part of the calculating content-length: .
I think that would give impressive power if in tcp output was possible to calculate the size of the string that is sent as the content and / or the http output to allow a custom format of the content of the request.
Thanks anyway for your answer.
greetings
Jordan Sissel March 15, 2013 at 5:39 AM
Marking resolved; this feature is already present.
Jordan Sissel March 15, 2013 at 5:38 AM
The behavior you are requesting is already implemented.
HTTP Request:
I think it would be interesting to count the total size of the fields received.
For example it might be useful to send a HTTP POST from HTTP and power output set the Content-Length:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
14.13 Content-Length
POST /request HTTP/1.1
Accept: application/jsonrequest
Content-Type: application/jsonrequest
Host: json.penzance.org
Content-Length: 72
{"user":"doctoravatar@penzance.com","forecast":7,"t":"vlIj","zip":94089}