hope someone can help! Just written a little interface for clients to post bugs they find directly to youtrack using rest and c#
It works fine apart from persisting the login....
this is the login code:
string url = Base_Url + "user/login?";
NameValueCollection formData = new NameValueCollection();
formData["login"] = "username";
formData["password"] = "password";
WebClient serviceRequest = new WebClient();
byte responseBytes = serviceRequest.UploadValues(url, "POST", formData);
string response = Encoding.UTF8.GetString(responseBytes);
Which logs the user in and creates a cookie called JSESSIONID - which i assume i can then post off with subsequent requests?
However the path is set on the cookie, "/youtrack" so i can't read it in .net?
whats going on? in the example here: http://confluence.jetbrains.net/display/YTD2/Log+in+to+YouTrack the example response doesn't set a path..?
Cheers in advance for any help...