Thanks, I had actually completely overlooked the www. Hitting my head off the wall now, but thank you.
On 6 July 2010 20:07, Tom Wilson <tomthedevelo...@gmail.com> wrote: > Try http://www.google.com/base/feeds/snippets?bq=macbook it works for me. > > Curl won't follow redirects unless you tell it to buts its best practice to > just use the correct URL. > > If you wanted your code to work you'd need to add -L to tell curl to follow > locations right now its stopping at the 301 redirect because your not > telling it otherwise > > > On Tue, Jul 6, 2010 at 19:58, Sam Bell <samueljamesb...@gmail.com> wrote: > >> I've been trying all day to get something working with ruby and >> net::HTTP, but to no avail, so I've moved to curl for now, hopefully >> this should be easily to follow... >> >> All I'm trying to do is search /feeds/snippets, and although in future >> I'll include my API key in the url, for now I'll paste what I try each >> time: >> >> curl --header "X-Google-Key: key=xxx" -I >> http://google.com/base/feeds/snippets?bq=macbook >> >> >> >> >> HTTP/1.1 301 Moved Permanently >> Location: http://www.google.com/base/feeds/snippets?bq=macbook >> Content-Type: text/html; charset=UTF-8 >> X-Content-Type-Options: nosniff >> Date: Tue, 06 Jul 2010 18:51:42 GMT >> Expires: Thu, 05 Aug 2010 18:51:42 GMT >> Cache-Control: public, max-age=2592000 >> Server: sffe >> Content-Length: 249 >> X-XSS-Protection: 1; mode=block >> >> >> Surely I should get an XML document in response, not this? Any ideas? >> >> Any help at all would be greatly appreciated... thanks! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Base Data API" group. >> To post to this group, send email to >> google-base-data-...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-base-data-api+unsubscr...@googlegroups.com<google-base-data-api%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-base-data-api?hl=en. >> >> > > > -- > Thanks, > > Tom Wilson > Web and Media Developer > > e: t...@tomthedeveloper.com > w: www.tomthedeveloper.com > > Google Base Tools - http://dev.tomthedeveloper.com/googlebase > Featured Project : > http://google-code-featured.blogspot.com/2008/02/google-base-competitor-analysis.html > > -- > You received this message because you are subscribed to the Google Groups > "Google Base Data API" group. > To post to this group, send email to google-base-data-api@googlegroups.com > . > To unsubscribe from this group, send email to > google-base-data-api+unsubscr...@googlegroups.com<google-base-data-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-base-data-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Base Data API" group. To post to this group, send email to google-base-data-...@googlegroups.com. To unsubscribe from this group, send email to google-base-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-base-data-api?hl=en.