Forum Discussion
stucky101_88485
Nimbostratus
Aug 08, 2012cannot add \r\n to string
iApp gurus
I'm working on customizing the basic http iapp to send a user agent in the http header. It looks like the
f5.app_utils:create_monitor proc doesn't let me pass such an option so I'm t...
Mitra_Kelly_625
Aug 08, 2012Historic F5 Account
There is a drop-down labeled with "What HTTP version do your HTTP servers expect clients to use?" which has two options "Version 1.0" and "Version 1.1". It defaults to version 1.0. For what you are trying to do, you need to switch it to "Version 1.1" The reason why is the HTTP version 1.0 requests have just a single \r\n and version 1.1 requests have two of them. You are sending an HTTP version 1.1 send string, but the HTTP version is still set to version 1.0. This is causing you problems. If you switch it to version 1.1, it should solve the truncation problem. You can change the default on that control to version 1.1, or even remove that control and hard-code version 1.1.
I agree that its frustrating that you get the double backslashes in the presentation. I don't have a solution for that. Its a limitation of the display widget. However, I do have a suggestion that might make it work better. Instead of presenting the entire send string with the user-agent header there, you could leave that default as "GET /" and add a new string or choice input field that just asks for the user-agent to specify. Then you could build the full send string from the URI and this input. It might make for a more readable presentation.
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