JavaScript is required to use Bungie.net

论坛

原先发布于:BungieNetPlatform
由xXxStrik3XxX编辑: 11/11/2014 4:12:32 PM
7
i used curl with google just fine and with all four.. as far as getting to the login page. simple tweek is all needed... should i post my code here? Of course I may be confused at what your doing, my code is for simple web testing and loging in then obtaining the data.. maybe, cross script if necessary for an "easier" solution?
English

发贴语言:

 

遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • The cURL extension is not enabled on Google's App Engine, so you're forced to use streams instead.

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • Hey, brainstormed and I know how to get it WITHOUT curl and through a "trick"... [u]Create a form[/u] with php, and the action just whatever... next... on submit, do a[u] Php redirect...[/u] [quote]header("Location: http://www.bungie.net/en/User/SignIn/Wlid?bru=%252f"); [/quote] now, heres the cool part.. the URL will be your action.. and heres a lil simple function to catch it.. [quote]function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } [/quote] now you already got your $_post['Email'] and $_post["Passwd'] and now with that lil function the form action.. submit ///// And Wahlah.. no cURL , and yeah... this method "SHOULD" work with all of them and just simple... although, could simple do the same post method on your app and add the URI redirect to your app console... But, yeah.. simple workaround , didnt test it all that much and hate posting without 100% certain, but yeah, I did this lil trick back in the day with VB winsock and its kinda a valuable lesson that people should learn.. you have a form, have captcha ;) course the 0auth limits thru other scripts without this need, but simply point stating...

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • This will work when the browser is the client, but not when an app hosted on App Engine wants to authenticate itself with Google Accounts, for example. It also requires user intervention/interaction with the form whereas I need to do it all programmatically on the server-side.

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • I sorta see, but this method IS all server side... no JS ... I actually dont know a whole lot about Google's App engine, but if your saying it only runs thru them instead via the client,i guess be just an extra redirect, it could simply goto your site first, before the auth and then pass the fields on two "leaps" i should say... I actually, have from past apps post to a SQL db then 95% is still all automated... on the iPhone you can do a simple local storage, but blah, dealing with more permissions its just easier sometimes to do it server side... I thought iPhone was a bitch sometimes, guess Google has it downfalls on things just like anything else....

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • I think I might have confused you ;) What I'm saying is that my server-side application needs to act as the client when it communicates with Google Accounts. It's not an application which is accessible with a a browser. It has its own Google Account email address and password it uses to authenticate itself.

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • **And I apologize as well, didn't mean to troll on your topic.. was not my intention.. Just sorta touched up on an experience I had in the past and I was pretty sure I found a way... You obviously know your stuff, and nice job to a fix on a continued what seems broken issue...

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

  • Don't worry, all the feedback is great for something I might have overlooked.

    发贴语言:

     

    遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

你没有权限查看此内容。
;
preload icon
preload icon
preload icon