Forum Discussion
Rostislav_Zatol
Dec 11, 2009Nimbostratus
It seems that I really have problem with content-Length. AP server denies if it doese not match :-(
So I am trying to replace payload now
With fix mapping it works:
HTTP::payload replace 0 [HTTP::payload length] [string map -nocase "10.0.0.139 $client_ip" [HTTP::payload]]
But folliowing case doese not match. Its mandatory to match whole strings including newline and space :-(
set client_ip [IP::client_addr]
HTTP::payload replace 0 [HTTP::payload length] [string map -nocase {"IPAddress\n*.*.*.*" "IPAddress\n$client_ip"} [HTTP::payload]]
damn...
BR
RZ