Forum Discussion
Brian_Ott_11267
Nimbostratus
Jan 28, 2005Removing extra \r\n
We're finding that when we use the bigip there is an extra \r\n added to the request. This causes problems mainly with POST requests with our application. I was directed by support that an iRule may beable to do this. I believe the BigIP automatically adds an extra \r\n (or crlf) to the request, as mentioned in SOL2167:
BIG-IP automatically translates any instance of \n in the specified command to \r\n and will automatically add an additional \r\n sequence at the end of the request.
We need to remove that extra bit. I've asked if there is a way to do this internally without an iRule, I was surprised when there was not. We experienced the same issue with a Netscaler, and was able to turn it off with a simple flag.
How do I go about making an irule to do this? I assume with http::payload or something similar. But I am not sure of the exact context.
-Brian.
9 Replies
- rapmaster_c_127Historic F5 AccountThe solution you reference very specifically refers to HTTP health monitors originating from the BIG-IP, not to requests passing through it. BIG-IP won't add an extra \r\n to a request passing through it. If your application is returning extra \r\ns, or your client is adding them, we can remove them though.
- Brian_Ott_11267
Nimbostratus
I spoke to support about it, I understand, I was hoping it would be simplier than that. I had thought this would be a slightly more common issue, but apparently not. Getting tcpdumps of this problem is extrmely difficult. I will post them when I get them. - Brian_Ott_11267
Nimbostratus
Also there is only one side, internal. We are using it in one arm mode. - rapmaster_c_127Historic F5 AccountI've anecdotally heard of certain applications which lie about their content-length. More specifically, they're off by two, since they state a content-length up-front, then deliver the data, and follow it with a \r\n - which is not legal.
- rapmaster_c_127Historic F5 AccountBrian,
- Brian_Ott_11267
Nimbostratus
We're running 9.0.3. Which has pipelining enabled by default, I believe. - Brian_Ott_11267
Nimbostratus
Also, there are no messages in the LTM logs. - Brian_Ott_11267
Nimbostratus
As far as I can tell, the http header looks normal. I am not sure where else to look in the tcpdump besides what I posted. I tried posting on a totally different website and it looks pretty much the same. So I would say our issues are not related to the \r\n like we had thought. Unless anyone else sees an issue with the short capture I showed here, or can suggest where else to look in the dump for such things. - Brian_Ott_11267
Nimbostratus
By the way, rapmaster, its mostly basic javascript/html. Its backended by an application coded in another language called Magic. Which may do other things. I am not a programmer so I don't know the details.
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