Forum Discussion

Donald_J_Ross's avatar
Mar 06, 2017

cURL Citrix UI login

I have a working health monitor logging into a citrix web UI and I'm trying to craft a cURL command to replicate this but failing, any advice appreciated.

 

Send String

 

POST /Citrix/Store_Test/ HTTP/1.0\r\nUser-Agent: F5Monitor\r\nHost: vds.test\r\nContent-Length: 78\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nLoginType=Explicit&user=TEST123&password=TEST123&domain=TEST\r\n

 

Receive String

 

Location: /Citrix/Store_Test/ *WIAuthId=

 

cURL Command

 

curl -vkX POST https://192.168.100.100/citrix/Store_Test/ HTTP/1.0\r\n -A F5Monitor -H vds.test -H "Content-Length: 80" -H Content-Type: application/x-www-form-urlencoded -u "TEST123:TEST123"

 

1 Reply

  • Just corrected a few thing in your command:

    curl -vkX POST https://192.168.100.100/citrix/Store_Test/ --http1.0 -A F5Monitor -H "Host: vds.test" -H "Content-Length: 80" -H "Content-Type: application/x-www-form-urlencoded" -u "TEST123:TEST123"
    

    If does not work, have a look in the curl man page:

    https://curl.haxx.se/docs/manpage.html