c2dm 响应中没有身份验证
当我尝试使用 POST
从 ac2dm 服务获取身份验证令牌时,我只获得 SID 和 LSID,而不是身份验证,其他人是否也发生过这种情况,如果是,您是如何解决的这?
我在服务器端使用 .NET (C#),我尝试使用 fiddler 发送后调用,但得到了相同的结果。
在 fiddler 中发布调用:
内容类型: 应用程序/x-www-form-urlencoded 主机:www.google.com 内容长度: 125 预期:100-继续
accountType=HOSTED_OR_GOOGLE&Email=myRegistredMail&Passwd=myPassword&Service=ac2dm&source=myAppPackageName
和响应(我得到响应代码 200,所以它应该可以工作):
SID=DQAAAMgAAADhKR...
LSID=DQAAAMoAAACCR...
如您所见,响应中没有身份验证令牌...
When I'm trying to use POST
to get the Auth token from the ac2dm service I only get the SID and LSID, not the Auth, has this happened to anyone else, if yes, how did you solve this?
I'm using .NET (C#) on the server side, I have tried to send the post call with fiddler to but I'm getting the same result.
Post call in fiddler:
Content-Type:
application/x-www-form-urlencoded
Host: www.google.com Content-Length:
125 Expect: 100-continueaccountType=HOSTED_OR_GOOGLE&Email=myRegistredMail&Passwd=myPassword&Service=ac2dm&source=myAppPackageName
and the response (i get response code 200 so it should work):
SID=DQAAAMgAAADhKR...
LSID=DQAAAMoAAACCR...
as you can see there is no Auth token in the response...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
就这么简单,大小写字母……
它应该是带有小“s”的服务和带有大“S”的源。
感谢 android-c2dm 小组的 MightyPush 指出了这一点:)
Its as simple as big and small letters...
It should be service with a small "s" and Source with a big "S".
Thanx to MightyPush at android-c2dm group for pointing this out:)
另外,如果您看到西班牙语文档,则它写道您必须使用 servicio 而不是服务,但这不起作用。
因此,要使其工作,关键字是
Also if you are seeing the spanish documentation, instead of service it is wrote that you must use servicio, but this does not work.
So for this to work, the keywords are