cancel
Showing results for 
Search instead for 
Did you mean: 

CRLF after HTTP/1.1

MAbbas
Cirrus
Cirrus

Hi .

I have a lagecy java app that does not include CRLF after protocol version .

How can I add it in an irule through F5

5 REPLIES 5

MAbbas
Cirrus
Cirrus

It's a post request

POST /abcde HTTP/1.1 need a CRLF here

Update - i can see it in binary scan that it smissing a Carrage Return  -- 

but if I try and update HTTP::request - it gives me an error

 

 POST\x20/abcd\x20HTTP/1.0\x0a

Thanks​

​i have done a find and replace in TCP -- CLIENT_DATA

regsub -all "\n" $packetdata "\r\n" packetdata

and done a Payload Replace

it seems to work --

does any one have a better idea ? or a better implementation ..

youssef1
Cumulonimbus
Cumulonimbus

Dear Abbas,

 

I was going to offer you the solution that you put in place. however it should be optimized to the maximum by applying rewrite only on very specific URLs.

 

I don't see how we can do otherwise without rewriting the payload ...

Haven't you try or modifying the Java application? it would be easier to correct the problem at the source.

 

keep me in touch if sou need help for irule ...

regards

Thanks fro the reply youssef -

yes - i have a if condition that selects the URL -- to update

Question -- is there any way this can be done in http

i tried doing a replace in HTTP::request -- but it does not allow me to update in that

MAbbas - Do you have the complete iRUle you used that worked? I am facing a similar issue but have not been having any success.