how to scape # with check_http
"Nacho ." <[email protected]> Mon, 4 Feb 2019 15:44:26 +0100
| Newsgroups | gmane.network.nagios.plugins |
|---|---|
| Message-ID | <CABiz+iR5DHMT-FPMTDYipayPdrHEea4NcpM8WRHrRntb3uh2og__37419.8614199244$1549878304$gmane$org@mail.gmail.com> |
--00000000000023640505811288c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks in advance, I=C2=B4m trying to monitor an URL that contains an # and when I execute tje check_http can=C2=B4t resolve it correctly, if I try with wget there isn=C2= =B4t problem to do that. This is the command that I=C2=B4m executing to try: check_http -H pruebas.es -S -u /raSaasUserPortal/web/console.html#/login -w 1 -c 4 I have probed to scape with "" and '' and \ : check_http -H pruebas.es -S -u "/raSaasUserPortal/web/console.html#/login" -w 1 -c 4 check_http -H pruebas.es -S -u "/raSaasUserPortal/web/console.html\#/login" -w 1 -c 4 check_http -H pruebas.es -S -u '/raSaasUserPortal/web/console.html#/login' -w 1 -c 4 check_http -H pruebas.es -S -u '/raSaasUserPortal/web/console.html\#/login' -w 1 -c 4 Thank a lot! --00000000000023640505811288c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks in advance,<br><br>I=C2=B4m trying to monitor an UR= L that contains an # and when I execute tje check_http can=C2=B4t resolve i= t correctly, if I try with wget there isn=C2=B4t problem to do that.<br><br= >This is the command that I=C2=B4m executing to try: <br><br><blockquote st= yle=3D"margin:0 0 0 40px;border:none;padding:0px">check_http -H <a href=3D"= http://pruebas.es">pruebas.es</a> -S -u /raSaasUserPortal/web/console.html#= /login -w 1 -c 4</blockquote><br>I have probed to scape with "" a= nd '' and \ :<br><br><blockquote style=3D"margin:0 0 0 40px;border:= none;padding:0px">check_http -H <a href=3D"http://pruebas.es">pruebas.es</a= > -S -u "/raSaasUserPortal/web/console.html#/login" -w 1 -c 4<br>= check_http -H <a href=3D"http://pruebas.es">pruebas.es</a> -S -u "/raS= aasUserPortal/web/console.html\#/login" -w 1 -c 4<br>check_http -H <a = href=3D"http://pruebas.es">pruebas.es</a> -S -u '/raSaasUserPortal/web/= console.html#/login' -w 1 -c 4<br>check_http -H <a href=3D"http://prueb= as.es">pruebas.es</a> -S -u '/raSaasUserPortal/web/console.html\#/login= ' -w 1 -c 4<br><br><br></blockquote>Thank a lot!</div> --00000000000023640505811288c3--