在C2DM响应没有权威性 [英] No auth in c2dm response
问题描述
当我试图使用 POST
来获得身份验证令牌从ac2dm服务我只得到SID和LSID,没有验证,有这个发生在任何人否则,如果是,你是怎么解决这个问题?
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?
我用.NET(C#)在服务器端,我试图与提琴手,但我得到了同样的结果发送后电话。
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.
邮政呼叫小提琴手:
内容类型:
应用程序/ x-WWW的形式urlen codeD
主持人:www.google.com的Content-Length:
125期望:100-继续
Content-Type: application/x-www-form-urlencoded Host: www.google.com Content-Length: 125 Expect: 100-continue
accountType=HOSTED_OR_GOOGLE&Email=myRegistredMail&Passwd=myPassword&Service=ac2dm&source=myAppPackageName
accountType=HOSTED_OR_GOOGLE&Email=myRegistredMail&Passwd=myPassword&Service=ac2dm&source=myAppPackageName
和响应(我得到响应code 200所以它应该工作)
and the response (i get response code 200 so it should work):
SID = DQAAAMgAAADhKR ...
SID=DQAAAMgAAADhKR...
LSID = DQAAAMoAAACCR ...
LSID=DQAAAMoAAACCR...
你可以看到有没有验证令牌的响应...
as you can see there is no Auth token in the response...
推荐答案
它作为大,小写字母一样简单...
这应该是一个小S的服务和Source一个大S。
Its as simple as big and small letters... It should be service with a small "s" and Source with a big "S".
感谢名单,以MightyPush在Android的C2DM组指出这一点:)
Thanx to MightyPush at android-c2dm group for pointing this out:)
这篇关于在C2DM响应没有权威性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!