Forum Discussion
cshannahan_3137
Sep 11, 2018Nimbostratus
Help with POST Content Length HTTP Monitor
Hello, this is what I have for a POST. When the content length is 0 I get a 200 back. When it's something else I get 415 unsupported media type. I'm not sure if there's something wrong with the way...
youssef1
Sep 11, 2018Cumulonimbus
Hi,
Did you try with real content lenght:
{"TerminalId":"LBTest","Value":"_","RetailerId":99999999} --> Your string is 57 characters long.
POST /api/ChunkingService/CacheChunk HTTP/1.1\r\nHost: obcs.uat.alc.ca\r\nConnection: /\r\nContent-Length: 57\r\nContent-Type: application\json\r\n\r\n{\"TerminalId\":\"LBTest\",\"Value\":\"_\",\"RetailerId\":99999999}
Try this and if you obtain an error did you have the possibility to check app logs?
For calculate lenght you can do it online or use an irule:
set recv_data "{\"TerminalId\":\"LBTest\",\"Value\":\"_\",\"RetailerId\":99999999}"
log local0. "AAA1: [string length $recv_data]"
We obtained: AAA1: 57
regards,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects