My favorites
▼
|
Sign in
php-plurk-api
A Plurk API Implementation with PHP.
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
30
attachment: realtime_get_commet_channel.diff
(957 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/php-plurk-api/plurk_api.php b/php-plurk-api/plurk_api.php
index fe68868..e725e3a 100644
--- a/php-plurk-api/plurk_api.php
+++ b/php-plurk-api/plurk_api.php
@@ -450,7 +450,6 @@ Class plurk_api {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $comet_url);
- curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, PLURK_AGENT);
@@ -465,6 +464,8 @@ Class plurk_api {
$this->http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$this->http_response = $result;
+ // 'CometChannel.scriptCallback(' ');');
+ $result = substr($result, 28, -2);
return json_decode($result);
}
@@ -1963,4 +1964,4 @@ Class plurk_api {
printf("getCountries: This function is not implemented yet.\n");
}
-}
\ No newline at end of file
+}
Powered by
Google Project Hosting