Forum Discussion
A__N_5261
Nimbostratus
Oct 16, 2012Change HTTP request string
Hi,
i was reading about Stream profle which seems interesting. which change server respose string.
is there any way we can change string in HTTP request
Thanks in Advance
Regards
A.N
4 Replies
- What_Lies_Bene1
Cirrostratus
You can do that using a Stream Profile, HTTP Class or an iRule. What exactly needs to be modified? - nitass
Employee
i understand stream profile changes both request and response payload. profile affects payload stream profile can modify. for example, when not using http profile, stream profile can change content in http request header (tcp payload).
e.g.[root@ve10:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.79:80 ip protocol 6 profiles { mystream {} tcp {} } } [root@ve10:Active] config b pool foo list pool foo { members 200.200.200.101:80 {} } [root@ve10:Active] config b profile mystream list profile stream mystream { defaults from stream source "something" target "somethingelse" } [root@ve10:Active] config ssldump -Aed -nni 0.0 port 80 New TCP connection 1: 172.28.19.251(44024) <-> 172.28.19.79(80) 1350399358.6589 (0.0010) C>S --------------------------------------------------------------- HEAD /something/test HTTP/1.1 User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Host: 172.28.19.79 Accept: */* --------------------------------------------------------------- New TCP connection 2: 200.200.200.10(44024) <-> 200.200.200.101(80) 1350399358.6599 (0.0010) C>S --------------------------------------------------------------- HEAD /somethingelse/test HTTP/1.1 User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Host: 172.28.19.79 Accept: */* --------------------------------------------------------------- - A__N_5261
Nimbostratus
Hi,
is Http profile should be disable to work Stream profile. as my understand http profile is use to look http content ? is steam profle do same ?
How do we know stream profile matching HTTP request or HTTP response. do we need match HTTP status ?
Regards
A.N - What_Lies_Bene1
Cirrostratus
You can use a Stream Profile and HTTP Profile together. Applying a HTTP Profile means only HTTP payload (not headers) is modified.
If you let us know exactly what you're looking to change, we can probably advise on the best approach.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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