2012年1月12日

CURL并发测试POST和DELETE请求

摘要: <?php$follower_ids = range(1000, 2000, 1);$prefix = "http://a.b.com/123/following";$mh = curl_multi_init();$argv1 = $argv[1];if (!empty($argv1) && is_string($argv1)) { switch (strtolower($argv1)) { ca... 阅读全文

posted @ 2012-01-12 18:49 Cheney Shen 阅读(1802) 评论(0) 推荐(0) 编辑

curl如何发起DELETE/PUT请求?(备忘)

摘要: DELETE:curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');PUT:curl_setopt($ch, CURLOPT_PUT, true);GET:curl_setopt($ch, CURLOPT_HTTPGET, true);POST:curl_setopt($ch, CURLOPT_POST, true);可以通过$_SERVER['REQ... 阅读全文

posted @ 2012-01-12 18:47 Cheney Shen 阅读(2979) 评论(0) 推荐(0) 编辑

导航