g3/g3proxy/ci/Java+HttpComponents-Client-4.5
2024-11-08 17:51:32 +08:00
..
AuthNoCachePostFile.java g3proxy: split coverage test into smaller parts 2024-11-08 17:51:32 +08:00
README.md g3proxy: split coverage test into smaller parts 2024-11-08 17:51:32 +08:00

Java Apache HttpComponents Testcases

This directory contains the testcases written in Java, using Apache HttpComponents HttpClient 4.5 as the http client library.

How to run

java -classpath /usr/share/java/httpclient.jar <filename>.jar

Testcases

AuthNoCachePostFile

Reading a file and POST it's content to http://httpbin.org/post.

PreemptiveBasicAuthentication is not enabled, so we can use this testcase to test the untrusted read functionality of the http proxy server.