Forum Discussion

dubdub's avatar
dubdub
Icon for Nimbostratus rankNimbostratus
Apr 25, 2011

HTTP monitor with multiple parameters in the query string?

I am trying to set up a monitor for a simple .aspx page that takes a number of parameters (four, to be exact). I can run a curl command from the shell that executes the URL successfully, i.e.

 

 

curl -v ""

 

 

And it works just fine. But when I put that in as my send string in the monitor, it seems to not even be leaving the LTM successfully; I never see a hit attempt in the IIS logs on my web server.

 

 

GET \"\" HTTP/1.1\r\nHOST: myserver\r\n

 

 

Has anyone sent multiple parameters in a query string from a monitor? I thought perhaps it was an encoding issue, but that doesn't seem to be it.

 

 

Thanks,

 

Jen

5 Replies

  • Hello,

     

     

    the first thing I'd do is get a packet capture on all VLANs and ensure the monitor is being sent.

     

     

    It's possible that this could be a routing issue and the packets are leaving the wrong VLAN thus never arriving at the webserver.

     

     

    Chris
  • dubdub's avatar
    dubdub
    Icon for Nimbostratus rankNimbostratus

    Hi Chris,

     

    I won't be able to get the network trace today (out of the office), but one thing I had tried was switching from a GET on the Default.aspx page in the monitor to a GET on a simple .html file. The monitor then worked fine, as do all the other monitors on this LTM - so I would assume traffic is leaving the box ok? I can execute the URL with the multiple parameters fine from a browser, so I know the page is answering correctly.

     

    Thanks, Jen

     

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    What happens if you remove those extra double quotes you have in the GET?

     

     

    H
  • As Hamish suggests, the \" are breaking this. If you're on 9.x, you can try this:

     

     

    GET /test/Default.aspx?p1=a&p2=b&p3=c&p4=d HTTP/1.1\r\nHost: myserver\r\n

     

     

    For 10.2+, you'll need to add another \r\n to the end:

     

     

    GET /test/Default.aspx?p1=a&p2=b&p3=c&p4=d HTTP/1.1\r\nHost: myserver\r\n\r\n

     

     

    Aaron
  • dubdub's avatar
    dubdub
    Icon for Nimbostratus rankNimbostratus
    I removed the doublequotes and added the extra carriage return, it works perfect! Thank you so much for the advice.

     

     

    Thanks,

     

    Jen