Gallery Remote HTTP_USER_AGENT

bkoopmans

Joined: 2005-02-26
Posts: 12
Posted: Mon, 2010-07-12 05:59

Does Gallery Remote identify itself as a particular HTTP_USER_AGENT?

I am looking for a way to allow Gallery Remote Access to upload to my gallery. Using HTACCESS I am using HTTP_referer to limit which sites can call my Gallery and this stopping Gallery Remote. I was hoping that perhaps Gallery Remote Identifies itself as a particular user agent

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2010-07-12 11:40

Yes, GR does set the User-Agent. The Java app uses String userAgent = "Gallery Remote " + GalleryRemote._().properties.getProperty("version");. The Applet copies the UA of the browser it's running in (because the server requires it).

See http://gallery.svn.sourceforge.net/viewvc/gallery/trunk/gallery_remote/com/gallery/GalleryRemote/model/Gallery.java

--
Gallery Remote developer

 
bkoopmans

Joined: 2005-02-26
Posts: 12
Posted: Mon, 2010-07-12 17:52

Thanks for your help. Just what I needed. All is working well.