[Midas] Fwd: Midas Contact

Mona Wong mona at sdsc.edu
Mon Jul 2 20:36:46 EDT 2012


Hi Midas:

	I'm posting this on behalf of our developer who just signed up for the mailing list but has not been given permission to post yet...

Begin forwarded message:

> ---------------------------------------
>  
> I have a question about web API midas.item.download. I have access to two items whose id are 18875 and 18876, respectively. Item 18875 is in user A's public folder. Item 18876 is in user A's private folder. For testing purpose, the contents of these items are actually same. I can access and download both items through Midas web interface.
>  
> Now, I want to download them using web API.
>  
> First of all, I used midas.login and get a token. By calling midas.item.get, I got the information about each item. So far so good.
>  
> My next step was to download item 18875 using midas.item.download, and it worked great.
> However, when I tried to download item 18876 using a similar command, it didn't return me the expected file. The command was:
> C:\test>curl -d "token=mytokenvalue&id=18876" -Lhttp://midas.test.edu/midas/api/json?method=midas.item.download
> PK??
> C:\test>
>  
> What I got is several non-ASCII characters (PK??). I also tried to download using Google Http Client and got the same result. Please help!
>  
>  

*********************************************
    Mona Wong
    Web & iPad Application Developer
    San Diego Supercomputer Center

    Believing we are in control is an
    illusion that brings suffering.
*********************************************





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120702/6fc5be1b/attachment.html>


More information about the Midas mailing list