JavaScript is required to use Bungie.net

#php

オリジナルの投稿元:BungieNetPlatform
11/10/2014 1:02:34 PM
1

Here's my replacement for cURL in PHP: WebRequest

Those of you such as myself planning to use [url=https://cloud.google.com/appengine/docs/php/]Googe App Engine with PHP[/url] with the platform would find that Google does not support cURL, which means you're forced to use file_get_contents, fopen, etc... which is incredibly frustrating. There was at least [url=https://github.com/azayarni/purl]one replacement[/url] I found which tried to make any of your existing cURL functions work, but it lacked access to some of the more intricate details I needed. So I went off and wrote my own and thought I'd share it. https://github.com/dazarobbo/WebRequest It's pretty simple to use - I hope. Main points: - Use [url=https://github.com/dazarobbo/WebRequest/blob/master/Web/Session.php]Sessions[/url] to manage cookies. Load and save the session (the cookies) to a file. - Probably shouldn't use it for anything too serious since I haven't tested it all very well yet. - Limited to HTTP 1.0 requests since there's nothing to handle chunked transfers. - Currently no restrictions on cookie sizes/amounts. - Tries to follow RFCs as close as possible - Requires PHP 5.4+ - Fun things with method chaining. - Use however you like. Try it with http://httpbin.org/.
English
#php #curl #GitHub

投稿言語:

 

マナーを守りましょう。投稿する前に、Bungie の行為規範を確認してください。 キャンセル 編集 ファイアチームを作る 投稿

トピック全体を表示
このコンテンツはご覧いただけません。
;
preload icon
preload icon
preload icon