Hi Salil,

The Python library should have support for proxies. If you set a few
environment variables before creating your client, it should work with
your proxy. For example, you could do something like this

  os.environ['http_proxy'] = 'http://127.0.0.1:8080'
  os.environ['https_proxy'] = 'http://127.0.0.1:8081'
  os.environ['proxy-username'] = 'your proxy username'
  os.environ['proxy-password'] = 'your proxy password'

before step 2 in your original post. I'm not sure how your proxy is
configured, so please let me know how it goes.

Happy coding,

A different Jeff

On Feb 8, 1:24 pm, salil <[EMAIL PROTECTED]> wrote:
> Hi Jeff,
>
> I appreciate your quick response. Yes, I am behind a proxy server, and
> most probably its for the same reason you mentioned.
> I guess I will have to try this from a different network.
>
> Thanks,
> Salil.
>
> On Feb 8, 3:11 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Salil,
>
> > Are you behind a proxy server? Usually when there is trouble
> > connecting to the authentication servers it is due to a corporate
> > firewall prohibiting secure traffic that isn't being proxied.
>
> > Cheers,
> > -Jeff
>
> > On Feb 8, 1:00 pm, salil <[EMAIL PROTECTED]> wrote:
>
> > > I am trying to execute the sample Hello World code located at: (Python
> > > Client)http://code.google.com/support/bin/answer.py?answer=75582&topic=12022...
>
> > > However, I am getting a connection timeout error after:
>
> > > 1 import gdata.docs.service
>
> > > 2 c = gdata.docs.service.DocsService()
>
> > > 3 c.ClientLogin("[EMAIL PROTECTED]", "password")
>
> > > Here is the stack trace for the error:
>
> > > Traceback (most recent call last):
> > >   File "<pyshell#15>", line 1, in <module>
> > >     c.ClientLogin("[EMAIL PROTECTED]", "")
> > >   File "C:\gdata.py-1.0.10.1\src\gdata\service.py", line 348, in
> > > ClientLogin
> > >     self.ProgrammaticLogin(captcha_token, captcha_response)
> > >   File "C:\gdata.py-1.0.10.1\src\gdata\service.py", line 289, in
> > > ProgrammaticLogin
> > >     auth_connection.endheaders()
> > >   File "C:\Python25\lib\httplib.py", line 856, in endheaders
> > >     self._send_output()
> > >   File "C:\Python25\lib\httplib.py", line 728, in _send_output
> > >     self.send(msg)
> > >   File "C:\Python25\lib\httplib.py", line 695, in send
> > >     self.connect()
> > >   File "C:\Python25\lib\httplib.py", line 1130, in connect
> > >     sock.connect((self.host, self.port))
> > >   File "<string>", line 1, in connect
> > > error: (10060, 'Operation timed out')
>
> > > Has anybody encountered or resolved this issue before? I am using the
> > > latest version.
>
> > > Thanks,
> > > Salil.- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to