Successfully using the Mantis SOAP API (aka "MantisConnect") from C#, I can successfully read an issue and also get the download_url
field.
When trying to download the attachment by something like this:
using (var request = new WebClient())
{
request.Credentials = new NetworkCredential("username", "password");
return request.DownloadData(mantisAtt.download_url);
}
it "downloads" a HTML page with the login screen instead of the binary attachment content.
So my question is:
How can I programmatically download an attachment for an issue in Mantis?