Displaying 2 results from an estimated 2 matches for "feed_stat".
Did you mean:
need_stat
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this:
@lang = params[''lang''] || ''en''
@errors = request.raw_post
@feed_stats =
Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang="
+ @lang), @errors)
render :text => @feed_stats
However whenever I run this I get an error message:
undefined method `post_form'' for Net::HTTP:Class
I''ve included
require ''net/htt...
2006 Mar 11
1
feedburner api xml
I''m trying to query feedburner''s api (as according to their
documentation). I''m using ''net/http'' as outlined here:
@feed_stats =
Net::HTTP.get(URI.parse("http://api.feedburner.com/awareness/1.0/GetFeedData?uri="
+ @feed_uri))
The query returns this xml:
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
<feed id="277241" uri="Eribium">...