mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:03:33 +03:00
examples: tidy-up headers and includes
To have a more similar layout across examples. Closes #19580
This commit is contained in:
parent
0a2618b265
commit
3c7cf8eac3
96 changed files with 116 additions and 121 deletions
|
|
@ -20,25 +20,27 @@
|
|||
*
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
* To compile:
|
||||
* gcc crawler.c $(pkg-config --cflags --libs libxml-2.0 libcurl)
|
||||
*
|
||||
*/
|
||||
***************************************************************************/
|
||||
/* <DESC>
|
||||
* Web crawler based on curl and libxml2 to stress-test curl with
|
||||
* hundreds of concurrent connections to various servers.
|
||||
* </DESC>
|
||||
*/
|
||||
|
||||
/*
|
||||
* To compile:
|
||||
* gcc crawler.c $(pkg-config --cflags --libs libxml-2.0 libcurl)
|
||||
*/
|
||||
#include <libxml/HTMLparser.h>
|
||||
#include <libxml/xpath.h>
|
||||
#include <libxml/uri.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
/* Parameters */
|
||||
static int max_con = 200;
|
||||
static int max_total = 20000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue