Escaping double quotes in probe request

Igor Zivkovic igzivkov at gmail.com
Thu Jul 19 08:32:20 UTC 2018


Hello,

Is there a way to escape double quotes in probe requests? I need to send 
a JSON request and I've tried %22 but checking the packets with tcpdump 
it seems Varnish doesn't convert escapes back to double quotes. For 
example:

   .probe = {
     .request =
       "POST /probe.php HTTP/1.1"
       "Host: virtualhost.example.com"
       "Content-Type: application/json"
       "Connection: close"
       ""
       "{%22key%22:%22value%22}";
   }

Thanks,
Igor


More information about the varnish-misc mailing list