Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24429f7

Browse files
author
Michael Christopher
committed
Version 1.6
1 parent06eff54 commit24429f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎README.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ Your [notifications page](https://app.zencoder.com/notifications) will come in h
195195

196196
VERSIONS
197197
---------
198+
Version 1.6 - 2011-10-24 Fixed issue with user agents in cURL
198199
Version 1.4 - 2011-10-06 Fixed error with adding api_key to URL
199200
Version 1.3 - 2011-09-21 Fixed bundled SSL certification chain and made catch_and_parse() static
200201
Version 1.2 - 2011-08-06 Added fixes for PHP Notices and SSL handling

‎Zencoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
/*
33
44
Zencoder API PHP Library
5-
Version: 1.2
5+
Version: 1.6
66
See the README file for info on how to use this library.
77
88
*/
99
define('ZENCODER_LIBRARY_NAME',"ZencoderPHP");
10-
define('ZENCODER_LIBRARY_VERSION',"1.5");
10+
define('ZENCODER_LIBRARY_VERSION',"1.6");
1111

1212
// Add JSON functions for PHP < 5.2.0
1313
if(!function_exists('json_encode')) {
@@ -177,7 +177,6 @@ class ZencoderCURL {
177177
CURLOPT_RETURNTRANSFER =>1,// Return content of the url
178178
CURLOPT_HEADER =>0,// Don't return the header in result
179179
CURLOPT_HTTPHEADER =>array("Content-Type: application/json","Accept: application/json"),
180-
CURLOPT_USERAGENT =>ZENCODER_LIBRARY_NAME ."" .ZENCODER_LIBRARY_VERSION,
181180
CURLOPT_CONNECTTIMEOUT =>0,// Time in seconds to timeout send request. 0 is no timeout.
182181
CURLOPT_FOLLOWLOCATION =>1,// Follow redirects.
183182
CURLOPT_SSL_VERIFYPEER =>1,
@@ -200,6 +199,7 @@ function ZencoderCURL($url, $json, $options = array()) {
200199
// Add library details to request
201200
$this->options[CURLOPT_HTTPHEADER][] ="Zencoder-Library-Name:".ZENCODER_LIBRARY_NAME;
202201
$this->options[CURLOPT_HTTPHEADER][] ="Zencoder-Library-Version:".ZENCODER_LIBRARY_VERSION;
202+
$this->options[CURLOPT_USERAGENT] =ZENCODER_LIBRARY_NAME ."" .ZENCODER_LIBRARY_VERSION;
203203

204204
// If posting data
205205
if($json) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp