URL of Hidden images return 404 ?

NitroDeskNitroDesk Registered Users Posts: 38 Big grins
I have searched a lot but could not find the answer to this one.
If i have an image in my gallery which ismarked as hidden, the API request (1.2.0) returns the URL of the image, but programmatically attempting to download it gives me a 404.
Should i be setting the session ID somewhere when requesting such images?

TIA,

-goutham
www.nitrodesk.com
www.NitroDesk.com
A better way to manage your Online Photos

http://nitrodesk.blogspot.com

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 11, 2008
    initial login using smugmug.login.withPassword or smugmug.login.withHash should set the SMSESS cookie (the same value as the SessionID) on your machine which will give you access to the image urls.

    If you are still getting 404, you might want to try setting the cookie in the http headers when you make a request for an image.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • NitroDeskNitroDesk Registered Users Posts: 38 Big grins
    edited February 11, 2008
    Thanks!
    devbobo wrote:
    initial login using smugmug.login.withPassword or smugmug.login.withHash should set the SMSESS cookie (the same value as the SessionID) on your machine which will give you access to the image urls.

    If you are still getting 404, you might want to try setting the cookie in the http headers when you make a request for an image.

    Cheers,

    David

    Works great, thanks David!
    -goutham
    www.NitroDesk.com
    A better way to manage your Online Photos

    http://nitrodesk.blogspot.com
Sign In or Register to comment.