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,
maybe like this?
when HTTP_REQUEST {
Insert Missing HTTP tag.
HTTP::payload replace 0 0 "; start="""
}
when HTTP_REQUEST_DATA {
Add missing pdu content.
HTTP::payload replace 0 0 "Content-ID: "
}
I am a little unsure how to make the HTTP::replace apend to the end of the line instead of adding the content at the begining of the Header. From the wiki pages:
HTTP::payload replace
* Replaces the amount of content that you specified with the argument, starting at with , adjusting the Content-Length header appropriately.
The offset is this in characters? How do I take into account line breaks?
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
