// assuming your Zend_Http_Client already exists as $httpClient // and that you want to change the timeout from the 10 second default to 30 seconds $config = array('timeout' => 30); $httpClient->setConfig($config);
Changing the default timeout for HTTP requests in PHP
Posted by
Jochen Hartmann (Google)
on
Thursday, October 09, 2008
If you are using the PHP client library to upload videos to YouTube, you may run into problems where your requests are timing out after ten seconds. The client library makes use of the Zend_Http_Client component to dispatch requests to the API server. By default the client object is initialized to time out any requests after 10 seconds. The snippet below shows how you may increase the timeout to 30 seconds:
Subscribe to:
Post Comments (Atom)
2 comments:
healthtips
healthtips
healthtips
healthtips
healthtips
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
socks proxy
check socks proxy
socks proxy
socks proxy
funnystory
funnystory
funnystory
funnystory
funnystory
funny pictures
funny pictures
funny pictures
funny pictures
funny pictures
funny pictures
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
Girl Xinh
cute animal
food news
internet
football news
bank news
marketing
science news
travel vietnamt
real estate vietnam
business news
music news
health news
software
seo news
Dịch vụ kế toán ACB là công ty chuyên cung cấp các dich vu ke toan uy tín chuyên nghiệp giá rẻ nhất tại Hồ Chí Minh và các tỉnh lân cận.
Tri ân khách hàng , ACB khuyến mại các hợp đồng về Dịch vụ kế toán và dich vu ke toan trọn gói.
Chi tiết liên hệ :Lầu 4, Tòa Nhà Long Mã, 602 Cộng Hòa, P 13, Q.Tân Bình, HCM
Hotline:0966660888
Post a Comment