google-code-export / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

CreateUser is not working because it is submitted to http url instead of https #610

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Following code should work: 

client = gdata.apps.client.AppsClient(domain=DOMAIN)
client.ClientLogin(email=ADMIN_USERNAME, password=ADMIN_PASSWORD, source='apps')
client.CreateUser(args.username, args.name, args.surname, args.password)

What is the expected output? What do you see instead?

This is copied from google.developers and it should work. I see error

What version of the product are you using?
gdata-2.0.17.zip
gdata.client.RequestError: Server responded with: 403, <HTML>
<HEAD>
<TITLE>Insecure HTTP requests not permitted.  Use HTTPS.</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Insecure HTTP requests not permitted.  Use HTTPS.</H1>
<H2>Error 403</H2>
</BODY>
</HTML>

Please provide any additional information below.

As a workaround you might use: 

client.ssl=True

Original issue reported on code.google.com by jbz...@gmail.com on 2 May 2012 at 10:12

GoogleCodeExporter commented 9 years ago
i have the same issue!!! please help

Original comment by eduardo_...@infeci.net on 14 May 2013 at 9:40