For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

LivioM's avatar
LivioM
Icon for Nimbostratus rankNimbostratus
Aug 21, 2019

replace http request

hi all,

I have a virtual server with an irule that makes a call (sideband) to an external ws.

the response of the sideband, must be forwarded (as request) to the pool of my VS.

can you help me, to "replace" the http_request before send it to the pool?

thanks

2 Replies

  • Sajid's avatar
    Sajid
    Icon for Cirrostratus rankCirrostratus

    https://devcentral.f5.com/s/question/0D51T00006j2rZDSAY/replace-part-of-uri

    https://devcentral.f5.com/s/articles/irule-modifying-the-uri-without-a-redirect

    https://devcentral.f5.com/s/question/0D51T00006i7j5kSAA/irule-uri-replace-help

     

    https://clouddocs.f5.com/api/irules/HTTP_REQUEST.html

     

     

    https://devcentral.f5.com/s/question/0D51T00006i7de9SAA/http-rewrite-header-pool-based-on-uri

     

  • LivioM's avatar
    LivioM
    Icon for Nimbostratus rankNimbostratus

    Thanks Sajid,

    i saw your links, but i have to replace all payload and header from sideband to Vs pool.

    do you know if exist any function?

     

    this is my case:

    set recv_data [recv -peek -timeout 3000 -status recv_status [expr {$header_length + $payload_length}] $conn]

     

    with this command, the variable $recv_data will contain full messagge (header and payload),

    i want assign to http::request, this variable.

    it's possible?

     

    Thanks,

    Livio