MBSCurl plugin

I’ve had a heck of a day trying to get MBS SSH working, and all but given up.

I’ve discovered my target also supports http.I have the following curl command working from a shell in Terminal.

curl -X POST -d "username=admin&password=secret" -b "SESSIONID=01234567890123456789012345678901"

The following does not work:

[code] dim e as integer
dim d as new CURLSMBS
d.OptionVerbose = true
d.CollectOutputData = true
d.CollectDebugData = true
d.CollectHeaderData = true
d.OptionSSLVerifyHost = 0
d.OptionSSLVerifyPeer = 0

d.OptionURL= " -d ““username=admin&password=secret”” -b "“SESSIONID=01234567890123456789012345678901"” "
d.OptionTimeOut = 2

no idea why you pass the command line parameters as URL. This may work better:

d.OptionPost = true
d.OptionPostFields = “username=admin&password=secret”
d.optionURL = “
d.OptionCookie = “SESSIONID=01234567890123456789012345678901”

maybe you try?