From 23713645d4e9ae00a3065f7a3d995e57748da4c7 Mon Sep 17 00:00:00 2001 From: Francisco Sedano Date: Wed, 14 Feb 2018 17:20:43 +0000 Subject: url: Add option CURLOPT_RESOLVER_START_FUNCTION - Add new option CURLOPT_RESOLVER_START_FUNCTION to set a callback that will be called every time before a new resolve request is started (ie before a host is resolved) with a pointer to backend-specific resolver data. Currently this is only useful for ares. - Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to pass to the resolver start callback. Closes https://github.com/curl/curl/pull/2311 --- tests/data/test655 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/data/test655 (limited to 'tests/data/test655') diff --git a/tests/data/test655 b/tests/data/test655 new file mode 100644 index 000000000..d98729c08 --- /dev/null +++ b/tests/data/test655 @@ -0,0 +1,50 @@ + + + +HTTP + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake swsclose +Connection: close +Content-Type: text/html + +hello + + +hello + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib655 + + + +resolver start callback + + +http://%HOSTIP:%HTTPPORT/655 + + + +# +# Verify data after the test has been "shot" + + +0 + + + -- cgit v1.2.3