<html>
<body>
<br>
Don't worry I have tried both POST and GET, many times now!<br><br>
Two crappy CF templates attached (testme.cfm which calls
testme2.cfm). I am not familiar with this list; if it doesn't
accept attachments and I should be including the code in the body of this
email, I guess I'll find out when my message comes back.<br><br>
Needless to say, the cookie-getting function does work and successfully
returns the two cookies:<br>
metaweb-user and metaweb-user-info.<br><br>
-----------------------<br>
Originally I wasn't deserialising the JSON response so hence the
unhelpful error message.<br>
Now the response is:<br><br>
<b>code</b>: /api/status/error/input/invalid <br>
<b>message</b>: authentication required<br>
----------------------<br><br>
Thanks again<br>
Mark<br><br>
<br>
At 16:34 06/08/2007, you wrote:<br><br>
<blockquote type=cite class=cite cite="">In addition to the cookie
requirement, you probably need to do your<br>
cfhttp call as a POST, cfhttp is a GET by default. If that
doesn't<br>
work post your cfhttp code here to the list.<br><br>
On 8/6/07, Mark CE <markce@btclick.com> wrote:<br>
><br>
><br>
> Hello there,<br>
> Has anyone successfully retrieved a query result from Freebase
using<br>
> Coldfusion CFHTTP?<br>
> Or know of a reason why mine would return a 400 error?<br>
><br>
> HTTP/1.0 400 Bad Request X-Metaweb-Cost: dt=0.001, nreqs=0
Date: Fri, 03<br>
> Aug 2007 16:10:49 GMT X-Metaweb-TID:<br>
> cache;cache01.p01.sfo1:8101;2007-08-03T16:10:49Z;0002<br>
> Server: Apache/2.0.58 Vary: Accept-Encoding Cache-Control:
no-cache<br>
> Content-Type: applic<br>
><br>
> If instead of CFHTTP I get my coldfusion code to output the
URL to the<br>
> page; I copy and paste into the address bar, I get a 200 response...
and the<br>
> query results I would expect.<br>
><br>
> Working code samples gratefully received!!!<br>
> Thanks<br>
> Mark CE<br>
><br>
><br>
><br>
> ________________________________<br>
> Mark Christian-Edwards<br>
> markce@btclick.com<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Developers mailing list<br>
> Developers@freebase.com<br>
>
<a href="http://lists.freebase.com/mailman/listinfo/developers" eudora="autourl">
http://lists.freebase.com/mailman/listinfo/developers</a><br>
><br>
><br><br>
<br><br>
-- <br>
No virus found in this incoming message.<br>
Checked by AVG Free Edition. <br>
Version: 7.5.476 / Virus Database: 269.11.6/938 - Release Date:
05/08/2007 16:16</blockquote></body>
</html>