Curl is good at getting the response time for a single element, but sometimes you need to see how fast the whole page loads.
curl很适合了解单一元素的响应时间,但是有时候需要了解整个页面的装载速度。
The cURL utility has so many options, it's best to read over its lengthy man page. Here are some common cURL uses
cURL实用程序有很多选项,最好通读它的手册页。
To test the page, simply navigate to it in the browser and select View Source to see what is returned. Another option is to use curl to get the XML return as noted here.
要测试页面,只需在浏览器中浏览并选择ViewSource来查看返回的内容。
If your system lacks curl and libcurl, you can download the source code from the libcurl home page.
如果您的系统中没有curl和libcurl,您可以从libcurl主页下载其源代码。
When I run the 'curl' utility from the command line to get the page it looks like
当我从命令行运行curl时,得到的页面如下所示
When I run the 'curl' utility from the command line to get the page it looks like
当我从命令行运行curl时,得到的页面如下所示
应用推荐