summaryrefslogtreecommitdiff
path: root/tests/data/test1021
Commit message (Collapse)AuthorAgeFilesLines
* ntlm: copy NTLM_HOSTNAME to host bufferDaniel Gustafsson2022-05-221-1/+1
| | | | | | | | | | | Commit 709ae2454f43 added a fake hostname to avoid leaking the local hostname, but omitted copying it to the host buffer. Fix by copying and adjust the test fallout. Closes: #8895 Fixes: #8893 Reported-by: Patrick Monnerat <patrick@monnerat.net> Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* tests: update NTLM tests to use new host nameDaniel Stenberg2022-05-201-14/+5
| | | | | | | Also drop the debug requirement, remove the setenv sections, remove prechecks and add NTLM to the top keywords. Closes #8889
* http_proxy/hyper: handle closed connectionsDaniel Stenberg2022-05-061-4/+4
| | | | | | | | Enable test 1021 for hyper builds. Patched-by: Prithvi MK Fixes #8700 Closes #8806
* ntlm: fix negotiated flags usagePatrick Monnerat2021-04-091-1/+1
| | | | | | | | | | | | | | | | | According to Microsoft document MS-NLMP, current flags usage is not accurate: flag NTLMFLAG_NEGOTIATE_NTLM2_KEY controls the use of extended security in an NTLM authentication message and NTLM version 2 cannot be negotiated within the protocol. The solution implemented here is: if the extended security flag is set, prefer using NTLM version 2 (as a server featuring extended security should also support version 2). If version 2 has been disabled at compile time, use extended security. Tests involving NTLM are adjusted to this new behavior. Fixes #6813 Closes #6849
* tests: use %TESTNUMBER instead of fixed numberDaniel Stenberg2021-03-191-9/+9
| | | | | | | This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
* tests: fixup several testsFabian Keil2021-02-091-2/+2
| | | | | | | | | | | | | | missing CRs and modified %hostip lib556/test556: use a real HTTP version to make test reuse more convenient make sure the weekday in Date headers matches the date test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d) Gets the test working with external proxies like Privoxy again. Closes #6463
* runtests: provide curl's version string as %VERSION for testsDaniel Stenberg2020-10-021-4/+4
| | | | | | | | ... so that we can check HTTP requests for User-Agent: curl/%VERSION Update 600+ test cases accordingly. Closes #6037
* tests: Change NTLM tests to require SSLJay Satiro2019-12-311-0/+1
| | | | | | | | | | | | | | | | | | Prior to this change tests that required NTLM feature did not require SSL feature. There are pending changes to cmake builds that will allow enabling NTLM in non-SSL builds in Windows. In that case the NTLM auth strings created are different from what is expected by the NTLM tests and they fail: "The issue with NTLM is that previous non-SSL builds would not enable NTLM and so the NTLM tests would be skipped." Assisted-by: marc-groundctl@users.noreply.github.com Ref: https://github.com/curl/curl/pull/4717#issuecomment-566218729 Closes https://github.com/curl/curl/pull/4768
* tests: use proxy featureMarcel Raad2019-10-151-0/+1
| | | | | | This makes the tests succeed when using --disable-proxy. Closes https://github.com/curl/curl/pull/4488
* ntlm: update selection of type 3 responseMarkus Moeller2019-01-011-3/+3
| | | | | | | | | | | NTLM2 did not work i.e. no NTLMv2 response was created. Changing the check seems to work. Ref: https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-NLMP/[MS-NLMP].pdf Fixes https://github.com/curl/curl/issues/3286 Closes https://github.com/curl/curl/pull/3287 Closes https://github.com/curl/curl/pull/3415
* http-proxy: do the HTTP CONNECT process entirely non-blockingDaniel Stenberg2017-06-141-2/+2
| | | | | | | Mentioned as a problem since 2007 (8f87c15bdac63) and of course it existed even before that. Closes #1547
* tests: updated for modified fake randomDaniel Stenberg2017-05-081-1/+1
|
* tests: fix CONNECT test cases to be more strictDaniel Stenberg2016-12-011-1/+1
| | | | ... as they broke with the cleaned up CONNECT handling
* Revert "Proxy-Connection: stop sending this header by default"Daniel Stenberg2016-08-161-0/+3
| | | | This reverts commit 113f04e664b16b944e64498a73a4dab990fe9a68.
* Proxy-Connection: stop sending this header by defaultDaniel Stenberg2016-02-081-3/+0
| | | | | | | | | RFC 7230 says we should stop. Firefox already stopped. Bug: https://github.com/curl/curl/issues/633 Reported-By: Brad Fitzpatrick Closes #633
* NTLM: set a fake entropy for debug builds with CURL_ENTROPY setDaniel Stenberg2014-06-111-1/+1
| | | | | | | | | | | | | | | | Curl_rand() will return a dummy and repatable random value for this case. Makes it possible to write test cases that verify output. Also, fake timestamp with CURL_FORCETIME set. Only when built debug enabled of course. Curl_ssl_random() was not used anymore so it has been removed. Curl_rand() is enough. create_digest_md5_message: generate base64 instead of hex string curl_sasl: also fix memory leaks in some OOM situations
* tests: Disabled NTLM tests for non-debug buildsSteve Holme2014-06-111-0/+1
| | | | | | Added required "debug" feature, missed in commit 1c9aaa0bac, as NTLMv2 calls Curl_rand() which can only be fixed to a specific entropy in debug builds.
* tests: Updated NTLM tests for NTLMv2 type-3 messageSteve Holme2014-01-301-2/+2
|
* tests: Disabled NTLM tests when running with SSPI enabledSteve Holme2013-12-281-0/+1
|
* test1509: verify proxy header response headers countDaniel Stenberg2013-03-271-14/+14
| | | | | | | | | | | | | Modified sws to support and use custom CONNECT responses instead of the previously naive hard-coded version. Made the HTTP test server able to extract test case number from the host name in a CONNECT request by finding the number after the last dot. It makes 'machine.moo.123' use test case 123. Adapted a larger amount of tests to the new <connect> style. Bug: http://curl.haxx.se/bug/view.cgi?id=1204 Reported by: Martin Jansen
* tests: phase out haxx.seDaniel Stenberg2011-03-091-8/+8
| | | | | | Instead of using haxx.se as a fixed magic host name in lots of tests, this is a first step to move toward the generic example.com host instead.
* Make the LD_PRELOAD path absolute in the tests that use itDan Fandrich2010-08-161-1/+1
| | | | | | | | In some situations, libtool will change directories and perform a link step before executing the libtest test app. Since LD_PRELOAD is in effect for this entire process, the path to the binary must be absolute so it will be valid no matter in which directory the app is running.
* NTLM tests: boost coverage by forcing the hostnameKamil Dudka2010-07-301-6/+10
| | | | | | | | | | | | | A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM test-cases to override the system implementation of gethostname(). It makes it possible to test the NTLM authentication for exact match, and this way test the implementation of MD4 and DES. If LD_PRELOAD doesn't work, a debug build willl also workk as debug builds are now made to prefer a specific environment variable and will then return that content as host name instead of the actual one. Kamil wrote the bulk of this, Daniel Stenberg polished it.
* Changed host name to be under the haxx.se domainYang Tse2009-05-081-8/+8
|
* - Craig A West brought us: libcurl now defaults to do CONNECT with HTTPDaniel Stenberg2009-02-021-3/+3
| | | | | | | | | | version 1.1 instead of 1.0 like before. This change also introduces the new proxy type for libcurl called 'CURLPROXY_HTTP_1_0' that then allows apps to switch (back) to CONNECT 1.0 requests. The curl tool also got a --proxy1.0 option that works exactly like --proxy but sets CURLPROXY_HTTP_1_0. I updated all test cases cases that use CONNECT and I tried to do some using --proxy1.0 and some updated to do CONNECT 1.1 to get both versions run.
* Added HTTP CONNECT keywordsDan Fandrich2008-08-111-1/+1
|
* Edited some test keywords for consistencyDan Fandrich2008-06-211-0/+1
|
* added test 1021 to verify my fix for bug report #1879375Daniel Stenberg2008-01-261-0/+134