Home > Backend Development > PHP Tutorial > 使用curl写测试程序解决思路

使用curl写测试程序解决思路

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:14:37
Original
771 people have browsed it

使用curl写测试程序
php中如何使用curl写一个测试程序,测试路径为:http:/server/get.php?appid=9&appver=200&client=1

------解决方案--------------------

PHP code
$ch = curl_init("http:/server/get.php?appid=9&appver=200&client=1") ; curl_setopt(?$ch, CURLOPT_RETURNTRANSFER, true) ; curl_setopt(?$ch, CURLOPT_BINARYTRANSFER, true) ; $output=curl_exec($ch);echo $output;curl_close($ch) ;<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
curl simulated login
From 1970-01-01 08:00:00
0
0
0
Convert cURL command line to PHP cURL code
From 1970-01-01 08:00:00
0
0
0
Convert command line cURL to PHP cURL
From 1970-01-01 08:00:00
0
0
0
How to set boolean value true in php curl
From 1970-01-01 08:00:00
0
0
0
Please tell me, php curl request page shows blank
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template