My friend Michał Bartoszkiewicz helped me. He told me, that it looked like there are some problems with polish servers.
I tried with this : curl --header "Authorization: GoogleLogin auth=my_long_auth+token" -- data-binary @email.txt --header 'Content-Type: application/atom+xml' -- header "Host: apps-apis.google.com" --url https://64.233.179.118/a/feeds/migration/2.0/cs.uni.wroc.pl/test/mail/batch -k ans everything works well. of course email.txt is correct XML file with messages. On 20 Lut, 18:35, "Julian (Google)" <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to migrate the email the same way you are doing, I > get the same problem. I will look further into it and get back to you > as soon as possible. > > Did you try the .NET or Java migration Clients? > > Julian. > > On Feb 19, 9:17 am, "Rafał Nowak" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > i am trying to do > > thishttp://code.google.com/apis/apps/email_migration/developers_guide_pro... > > instructions. > > > I am doing tis in shell : > > > curl > > --data Email="[EMAIL PROTECTED]" > > --data Passwd="hereismypassword" > > --data service="apps" > > --data accountType="HOSTED" > > --urlhttps://www.google.com/accounts/ClientLogin > > --verbose; > > > And I get: > > > * About to connect() towww.google.comport443 (#0) > > * Trying 66.249.93.147... connected > > * Connected towww.google.com(66.249.93.147) port 443 (#0) > > * successfully set certificate verify locations: > > * CAfile: /usr/share/curl/curl-ca-bundle.crt > > CApath: none > > * SSLv2, Client hello (1): > > * SSLv3, TLS handshake, Server hello (2): > > * SSLv3, TLS handshake, CERT (11): > > * SSLv3, TLS handshake, Server finished (14): > > * SSLv3, TLS handshake, Client key exchange (16): > > * SSLv3, TLS change cipher, Client hello (1): > > * SSLv3, TLS handshake, Finished (20): > > * SSLv3, TLS change cipher, Client hello (1): > > * SSLv3, TLS handshake, Finished (20): > > * SSL connection using AES256-SHA > > * Server certificate: > > * subject: /C=US/ST=California/L=Mountain View/O=Google Inc/ > > CN=www.google.com > > * start date: 2007-05-03 15:34:58 GMT > > * expire date: 2008-05-14 23:18:11 GMT > > * common name:www.google.com(matched) > > * issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA > > * SSL certificate verify ok.> POST /accounts/ClientLogin HTTP/1.1 > > > User-Agent: curl/7.16.4 (x86_64-suse-linux-gnu) libcurl/7.16.4 > > > OpenSSL/0.9.8e zlib/1.2.3 libidn/1.0 > > > Host:www.google.com > > > Accept: */* > > > Content-Length: 71 > > > Content-Type: application/x-www-form-urlencoded > > > < HTTP/1.1 200 OK > > < Content-Type: text/plain > > < Cache-control: no-cache > > < Pragma: no-cache > > < Content-Length: 563 > > < Date: Tue, 19 Feb 2008 09:07:38 GMT > > < Server: GFE/1.3 > > < > > SID=DQAAAHcAAADVvHt7InSDTi_sfwMS- > > vvxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXfTrbetCNO1t11NmLxap6WW6OPzP3_qLANoyTrM7oY7nztahYlxz3-2lgAPNl8rePb5RLuNehzbcPXQw0OHdCZyF8dDFV- > > Izt6Er2eXA > > LSID=DQAAAHsAAAAK4K2wklUL4O4esqgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx3KW9G5giqKUIAhjQC8aBVjOIVVNt_xUBfZ4FuE8uDcwQfMIUiUEfXxgXVZruIwIgRE8x01WbSzr8j2FaMr6BKyZNAOygAOf4i1Qt0KcoUw > > Auth=DQAAAHkAAAAK4K2wklUL4O4esqgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0Awwyu8CczCNqTvkBmlSlDrtaWfx8OCXd4ekQtElXpGx5JjLkP4lsYPKGnvWyg6iQW- > > UXhmyeX8JO3paaxbt61oGJ1CXSLxSV5X-cw > > * Connection #0 to hostwww.google.comleftintact > > * Closing connection #0 > > * SSLv3, TLS alert, Client hello (1): > > > And I get the my auth token, > > Now I want to upload some message to [EMAIL PROTECTED] > > > How to do this? > > > I am trying to do this: > > > curl > > > > --urlhttps://apps-apis.google.com/a/feeds/migration/2.0/mydomain.com/myuse... > > --header "Authorization: GoogleLogin auth=DQAAAHoAAA...(my auth > > token)....V5X-cw" > > -F "@message.txt;type=application/atom+xml" > > > with file message.txt : > > <?xml version="1.0" encoding="utf-8"?> > > <feed xmlns="http://www.w3.org/2005/Atom" > > xmlns:batch="http://schemas.google.com/gdata/batch" > > xmlns:gd="http://schemas.google.com/g/2005"> > > <entry> > > <category term="http://schemas.google.com/apps/2006#mailItem" > > scheme="http://schemas.google.com/g/2005#kind" /> > > <apps:rfc822Msg xmlns:apps="http://schemas.google.com/apps/2006"> > > Received: by 140.23.6.190 with HTTP; Mon, 16 Jul 2007 10:12:26 -0700 > > (PDT) > > Message-ID: > > <[EMAIL PROTECTED]> > > Date: Mon, 16 Jul 2007 10:12:26 -0700 > > From: "Elizabeth Bennet" <[EMAIL PROTECTED]> > > To: "Fitzwilliam Darcy" <[EMAIL PROTECTED]> > > Subject: Lunch on Monday > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline > > Delivered-To: [EMAIL PROTECTED] > > > This is the body of the email message. Would you like to have lunch > > this week? > > </apps:rfc822Msg> > > <apps:mailItemProperty value="IS_STARRED" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <apps:mailItemProperty value="IS_UNREAD" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <apps:label labelName="Event Invitations" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <apps:label labelName="Friends" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <batch:id>0</batch:id> > > </entry> > > <entry> > > <category scheme="http://schemas.google.com/g/2005#kind" > > term="http://schemas.google.com/apps/2006#mailItem" /> > > <apps:rfc822Msg xmlns:apps="http://schemas.google.com/apps/2006"> > > Received: by 140.23.6.190 with HTTP; Mon, 16 Jul 2007 11:12:26 -0700 > > (PDT) > > Message-ID: > > <[EMAIL PROTECTED]> > > Date: Mon, 16 Jul 2007 11:12:26 -0700 > > From: "Elizabeth Bennet" <[EMAIL PROTECTED]> > > To: "Fitzwilliam Darcy" <[EMAIL PROTECTED]> > > Subject: Lunch on Monday > > MIME-Version: 1.0 > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Content-Transfer-Encoding: 7bit > > Content-Disposition: inline > > Delivered-To: [EMAIL PROTECTED] > > > This is the body of the email message. Would you like to have lunch > > this year? > > </apps:rfc822Msg> > > <apps:mailItemProperty value="IS_INBOX" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <apps:label labelName="Important" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <apps:label labelName="Business" > > xmlns:apps="http://schemas.google.com/apps/2006" /> > > <batch:id>1</batch:id> > > </entry> > > </feed> > > > The result is: > > * About to connect() to apps-apis.google.com port 443 (#0) > > * Trying 66.249.91.118... connected > > * Connected to apps-apis.google.com (66.249.91.118) port 443 (#0) > > * successfully set certificate verify locations: > > * CAfile: /usr/share/curl/curl-ca-bundle.crt > > CApath: none > > * SSLv2, Client hello (1): > > > and it seems to hang. > > > Any help? > > I am afraid that the second curl command is incorrect. Could you give > > me an example of correct one? > > > -- > > Rafał Nowak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" 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-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
