I've just checked-in the change that fixes this issue. Basically (pun intended) cfHttpConnectionGoogle.authenticate() needed to be implemented.
:-) Matt On Mon, Jan 4, 2010 at 7:44 PM, J.Lucido <[email protected]> wrote: > I was an encouraged to test OBD on GAE today so I thought I would give > it a shot with a very simple app. I was quite amazed at how simple it > was to get the app up and running using the Eclipse plug-in. Now I am > asking myself why I didn't do this earlier. > > I did run into an issue, or should I say unexpected situation, with > the app. Specifically, the app uses CFHTTP extensively to manipulate a > web camera. In order to make the POST/GET requests of the device the > request must pass basic user authentication information. According to > the wiki post using CFHTTP on GAE it appeared the username and > password attributes would work (the only attributes listed as NOT > supported are proxy server related and the request timeout). This was > not what I experienced since the response I received using the > username/password attributes was a 401 unauthorized (however, the > exact same line of code worked on my OBD instance running on Tomcat). > > I figured I would try another approach so I thought I would explicitly > set the authorization header value using cfhttpparam. I created a > Base64 representation of my username and password and set that as the > value of the authorization header and like magic I was back in > business with a 200 OK response. I was quite shocked my first attempt > to solve the problem worked (I think I will play the lottery tonight). > > Just in case someone else has this issue in the future and is hoping > for an example of what worked for me: > <cfhttp url="http://www.website.com" method="GET"> > <cfhttpparam type="header" name="Authorization" value="#'Basic ' & > ToBase64('username:password')#"> > </cfhttp> > > Has anyone else run into this issue of using username and password > attributes with CFHTTP on GAE? If so, were you able to make it work > using the tag attributes? If not, did you accomplish an authenticated > request another way? > > Kind regards, > -JSLucido > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > mailing list - http://groups.google.com/group/openbd?hl=en > > !! save a network - please trim replies before posting !! -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
