This topic contains 2 replies, has 2 voices, and was last updated by  roho 2 years, 4 months ago.

HTTP API: Always new login session?

  • Yes. You could look at one of my older tips and tricks using the log api before it supported HTTP basic authentication.

    Basically you simulate a login of a user and get a session cookie and then use that as your authentication mechanism. It should do the trick.

    Hi Eliot,

    as always, you have been very helpful, thank you!

    In case anyone is interested, the solution is: First send a request to “http://localhost:6543/login.html?UserName=blah&Password=blub”. In .Net, use a CookieContainer to store the cookie you get from this.

    Set this CookieContainer in the following requests, and the same session will be used without new login.

You must be logged in to reply to this topic.