Get attachment via SOAP
I'm trying to get an attachment via SOAP but i'm not getting there. I'm allways getting "Unauthorized".
I've tried basic authentication with a normal user and admin. Replaced the token for a password.
I've tried with a cookie with a normal user and admin. Replaced the token for a password.
None of this work. Can you help me please?
HttpWebRequest retVal = (HttpWebRequest)WebRequest.Create("http://" + @DOMAIN + "/service/content/" + "get?id=" + id + "&part=" + part + "");
retVal.Method = "GET";
string authInfo = AccountUsername + ":" + AuthToken;
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));
retVal.Headers["Authorization"] = "Basic " + authInfo;
CookieContainer cookieJar = new CookieContainer();
Cookie c = new Cookie("ZM_AUTH_TOKEN", AuthToken);
c.Domain = @DOMAIN;
retVal.CookieContainer = cookieJar;
Via fiddler, i've scan the response and everything looks ok with the request.
The response is still "Unauthorized".
Analysing the reponse i've discovered the reason why. "Unable to parse authtoken".
I checked the token and it's all good.
Searched the internet and i can't find any answers.
Can anybody help me please?
Thanks in advanced!