Alex, you are a STAR!! Knew it had to be something stupid....thanks a lot, yes it works fine now.
Regards On May 13, 5:21 pm, Alex <[email protected]> wrote: > Based on a quick look, you don't provide the authorization header > (missing Authorization, see italic bolded line). > > Content-Type: application/atom+xml > Content-length: 123 > * Authorization: GoogleLogin auth=[received auth token]* > X-Google-Key: key=[API Key] > GData-Version: 2 > > Let us know if it works now. > > Alex > > On Tue, May 12, 2009 at 12:09 AM, Tom Wilson <[email protected] > > > > > wrote: > > > If you already have a datafeed why not just ftp the file ? > > > On May 11, 9:03 pm, QDigital <[email protected]> wrote: > > > Thanks for comment Tom, I have checked the base dashboard, no active > > > items, no errors. Am I missing something, do I have to set anything up > > > in the base dashboard? > > > > All I can see is settings for data feeds from files etc. but I want to > > > upload a data feed from a remote host automatically using Client login > > > as below. > > > > I assume that the error message below is trying to tell me that I have > > > not logged in when I try to submit a batch feed usinghttp:// > >www.google.com/base/feeds/items/batch. > > > > [Response:HTTP/1.1 401 Authorization required WWW-Authenticate: > > > GoogleLogin realm="http://www.google.com/accounts" Content-Type: text/ > > > html; charset=UTF-8 Content-Length: 167 Date: Mon, 11 May 2009 > > > 19:55:26 GMT Expires: Mon, 11 May 2009 19:55:26 GMT Cache-Control: > > > private, max-age=0 X-Content-Type-Options: nosniff Server: GFE/2.0 > > > Authorization required > > > Error 401 > > > > Dave Watson > > > > On May 11, 1:23 am, Tom Wilson <[email protected]> wrote: > > > > > Check your dashboard for errors like disapproved. > > > > > Tom Wilson > > > > Freelance Google Base Developer and Consultantwww.tomthedeveloper.com > > > > > Google Base Tools -http://dev.tomthedeveloper.com/googlebase > > > > Featured Project : > >http://google-code-featured.blogspot.com/2008/02/google-base-competit... > > > > > On May 10, 10:17 pm, QDigital <[email protected]> wrote: > > > > > > I have a simple application written in PHP 5 using the cURL library > > > > > using the following URL's, headers and posted data. > > > > > > It logs in OK and I get a 'valid' auth code, but when I try to upload > > > > > a batch feed I get a 401 error Authorisation Error. > > > > > > Does anybody what this message is referring to in the context of > > > > > submitting a batch feed, if I knew this I could find the problem in > > > > > the code. > > > > > > Log in to account using following:- > > > > > URL:https://www.google.com/accounts/ClientLogin > > > > > Headers: > > > > > Content-type: application/x-www-form-urlencoded > > > > > Post data: > > > > > accountType=HOSTED_OR_GOOGLE&[email protected]&Passwd=1234& > > > > > service=xapi&source=xyz-abc-1.2 > > > > > > The login processs returns a valid ‘auth=’, SID= and LSID= > > > > > > Submit batch feed using following:- > > > > > URL:http://www.google.com/base/feeds/items/batch > > > > > Headers: > > > > > Content-Type: application/atom+xml > > > > > Content-length: 123 > > > > > GoogleLogin auth=[received auth token] > > > > > X-Google-Key: key=[API Key] > > > > > GData-Version: 2 > > > > > Post data: > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > <feed xmlns="http://www.w3.org/2005/Atom" > > > > > xmlns:openSearch=http://a9.com/-/spec/opensearchrss/1.0/ > > > > > xmlns:g="http://base.google.com/ns/1.0" > > > > > xmlns:batch="http://schemas.google.com/gdata/batch"> > > > > > <title type="text">My Batch Feed</title> > > > > > ….. > > > > > ….. > > > > > </feed> > > > > > > This returns the error: > > > > > Authorization required > > > > > Error 401 > > > > > > Thanks in advance > > > > > Dave Watson > > -- > Alex Dovlecel, Google Switzerland GmbH > Company Identifikationsnummer: CH-020.4.028.116-1 --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Base-data-API?hl=en -~----------~----~----~----~------~----~------~--~---
