Forum Discussion
James_Wrubel_48
Nimbostratus
Jun 27, 2009forware only http payload to pool
Hi all,
I've got a requirement to tunnel a TCP-based application over HTTP. We control the data the client sends, so I had intended to put the node and port in custom http headers and t...
James_Wrubel_48
Nimbostratus
Jul 02, 2009I got stuck along the way - I couldn't get variables set in HTTP_REQUEST to show up in CLIENT_DATA. I assume that's either because doing the equivalent of a 'wait' statement is not possible or a bad idea, or because the F5 processes the TCP stream before the higher order HTTP. I have put that on the shelf for a while and am doing my own HTTP parsing (sigh) in CLIENT_DATA:
Only get the info before the HTTP headers
set myURI [getfield $cdata "HTTP" 1]
now trim off everything before the ? so we just have the querystring parameters
set myQS [getfield $myURI "?" 2]
log local0.info "uri = $myURI"
log local0.info "qs = $myQS"
There's probably a way to optimize these two queries to run this in one command - I figure I'll get to this later. Now that I have the QS I'm able to parse out on the "=" and use a switch statement to dig in to the individual parameters. Seems to be working so far but I need to put it all together.
Jim
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