Forum Discussion
Tim_W_72292
Nimbostratus
Nov 19, 2007Adding to header and PDU content
Hi,
I am trying to add some content to a HTTP header and pdu content. I just need to add the bit in bold as shown in the example below:
POST /mms-rs/mm7 HTTP/1.1
Host: mms.om...
Tim_W_72292
Nimbostratus
Nov 19, 2007Aaron,
I am going to give this a try and see what happens
rule mm7 {
when HTTP_REQUEST {
if {[HTTP::path] starts with "/mmsc/mm7" and [HTTP::method] eq POST}{
Insert Missing HTTP tag.
set old-data [HTTP::header value "Content-Type"]
set missing [; start=""]
HTTP::header remove "Content-Type"
HTTP::header insert "Content-Type""$old-data""$missing"
Add missing pdu content
STREAM::enable
STREAM::expression {@Content-Type:text/xml; charset="utf-8"@Content-Type:text/xml; charset="utf-8"\r\nContent-ID: @}
}
}
}
Tim
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
