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, 2007Ok I think this is going to do what I want, but the "" that are needed to be written how do I specify them?
when HTTP_REQUEST {
Insert Missing HTTP tag.
set old-data [HTTP::header value "Content-Type"]
HTTP::header remove "Content-Type"
HTTP::header insert "Content-Type""$old-data""; start="""
}
when HTTP_REQUEST_DATA {
Add missing pdu content.
HTTP::payload replace 0 0 "Content-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
