Danbooru

403 On mobile devices

Posted under General

I've been trying to make myself a WP7 utility that would download my subscriptions to my phone. Thumbnails load fine, but whenever I try to load a full sized image I get a 403. I can load images normally in my PC browser, and the same code runs just fine on PC without any 403s.

I tried to use browser's user agent string in my utility but I still got that 403. I am also getting 403s if I try to open image url in the iphone web browser, sometimes it load if I refresh, sometimes it doesn't.

I wonder if there is anything preventing mobile clients to directly access full-sized images?

Updated by ghostrigger

I do have authentication set up, and I verified that username/hash are valid. I also imported cookies from the post index request session. Utility worked just fine with danbooru on my PC: it's exactly the same code, exactly the same authentication. It just doesn't work on the Windows Phone for some reason.

we can't guarantee you anything. i, for one, have no wp to replicate your situation. hopefully someone appears later to confirm this when running the same utility as yours.

i'm not sure why you need to import cookies when api only asks for login and api key for authentication. or are you running a userscript? and are you also accessing the same resource in your pc as in your mobile phone? and within your privileged level? are your browsers in wp and pc have the exact settings? have you tried running this in another mobile device and still got the same result?

if the problem still persists maybe you can file an issue in github with as much as detail as possible or with a code snippet perhaps. wishing you well.

1