From: Robert M. <rob...@gm...> - 2014-07-28 20:22:35
|
Hi Uwe, On Mon, Jul 28, 2014 at 10:49 PM, Uwe Keim <uwe...@gm...> wrote: > Successfully using the SOAP API 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(_settings.UserName, > _settings.Password); > > return request.DownloadData(mantisAtt.download_url); > } I have little experience with C#, but it looks like you're setting HTTP Basic Auth credentials. The username and password should be supplied as parameters to the SOAP call. If that's not the root cause, please post the complete request, leaving out sensitive data. Thanks, Robert > ----------------- > > > 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? > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Mantisbt-soap-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev > -- http://robert.muntea.nu/ |