Forum Discussion

fandy_lastio's avatar
fandy_lastio
Icon for Nimbostratus rankNimbostratus
Dec 05, 2018

Grab youtube video title on SSLO or SSL forward proxy

Hello F5 experts,

i need your advise on the irules below, the objective is grab the title of youtube page video but we still failed to get the title.

when HTTP_REQUEST {

set clientip [IP::client_addr]
set uri [HTTP::uri]
STREAM::disable
HTTP::header remove Accept-Encoding

}

when HTTP_RESPONSE {

if {[HTTP::header content-type] starts_with "text"}{
  STREAM::expression {@.*@}
       STREAM::enable
      }

}

when STREAM_MATCHED {

log local0.  "[STREAM::match] \"ip nya adalah : $clientip\" \"$uri \""

}

the iRule works on another website, the output from other website is :

Dec 4 21:45:01 bigip1 info tmm3[13185]: Rule /Common/test_irule : Twitter. It's what's happening. "the client IP is : 10.20.0.50" "/ " Dec 4 21:45:01 bigip1 info tmm3[13185]: Rule /Common/test_irule : bird "the client IP is : 10.20.0.50" "/ "

but we still failed to grab title on youtube.

thank you

No RepliesBe the first to reply