<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).&nbsp; 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.&nbsp; If that
doesn't<br>
work post your cfhttp code here to the list.<br><br>
On 8/6/07, Mark CE &lt;markce@btclick.com&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; Hello there,<br>
&gt;&nbsp; Has anyone successfully retrieved a query result from Freebase
using<br>
&gt; Coldfusion CFHTTP?<br>
&gt;&nbsp; Or know of a reason why mine would return a 400 error?<br>
&gt;<br>
&gt;&nbsp; HTTP/1.0 400 Bad Request X-Metaweb-Cost: dt=0.001, nreqs=0
Date: Fri, 03<br>
&gt; Aug 2007 16:10:49 GMT X-Metaweb-TID:<br>
&gt; cache;cache01.p01.sfo1:8101;2007-08-03T16:10:49Z;0002<br>
&gt; Server: Apache/2.0.58 Vary: Accept-Encoding Cache-Control:
no-cache<br>
&gt; Content-Type: applic<br>
&gt;<br>
&gt;&nbsp; If instead of CFHTTP I get my coldfusion code to output the
URL to the<br>
&gt; page; I copy and paste into the address bar, I get a 200 response...
and the<br>
&gt; query results I would expect.<br>
&gt;<br>
&gt;&nbsp; Working code samples gratefully received!!!<br>
&gt;&nbsp; Thanks<br>
&gt;&nbsp; Mark CE<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&nbsp; ________________________________<br>
&gt;&nbsp; Mark Christian-Edwards<br>
&gt;&nbsp; markce@btclick.com<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Developers mailing list<br>
&gt; Developers@freebase.com<br>
&gt;
<a href="http://lists.freebase.com/mailman/listinfo/developers" eudora="autourl">
http://lists.freebase.com/mailman/listinfo/developers</a><br>
&gt;<br>
&gt;<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>