Forum Discussion
10 Replies
Sort By
- Kevin_StewartEmployee"Fetch" request? Do you mean POST?
- AngeloNimbostratusNo all the did was change the http get to a fetch....
- AngeloNimbostratusNo all the did was change the http get to a fetch....
- AngeloNimbostratusNo all the did was change the http get to a fetch....
- AngeloNimbostratushi
- AngeloNimbostratusHi
- nitassEmployeecan you try something like this?
[root@ve10:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.252:80 ip protocol 6 rules myrule } [root@ve10:Active] config b pool foo list pool foo { members 200.200.200.101:80 {} } [root@ve10:Active] config b rule myrule list rule myrule { when CLIENT_ACCEPTED { TCP::collect } when CLIENT_DATA { set payload [TCP::payload] if { $payload starts_with "GET" } { TCP::payload replace 0 [TCP::payload length] "" TCP::payload replace 0 0 [string map {GET FETCH} $payload] } TCP::release TCP::collect } } [root@ve10:Active] config ssldump -Aed -nni 0.0 port 80 New TCP connection 1: 172.28.20.17(38478) <-> 172.28.19.252(80) 1373365190.6251 (0.0010) C>S --------------------------------------------------------------- GET / 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.252 Accept: */* --------------------------------------------------------------- New TCP connection 2: 200.200.200.10(38478) <-> 200.200.200.101(80) 1373365190.6263 (0.0010) C>S --------------------------------------------------------------- FETCH / 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.252 Accept: */* ---------------------------------------------------------------
- Kevin_StewartEmployeeNitass' example will certainly do what you need if it's a simple replacement of the "GET" method string with the word "FETCH". However, FETCH isn't an RFC 2616 (HTTP/1.1) compliant method, and nothing shows up in a search, so I have to assume 1) that your application is just coded to accept this non-standard method, 2) the protocol traffic isn't specifically HTTP-based, and/or 3) there's no indication that the FETCH method's syntax is identical to that of a GET request - in the same way that a GET request is different than a POST request - which is why I asked my original question.
- AngeloNimbostratusWorks like a champion thanks guys... @Nitass so i was on the right track i am learning at least lol.....
- AngeloNimbostratus@Kevin the developers changed this to see if the F5 could change the propitiatory commands for another application that they are designing