g3/g3proxy/ci/httpbin/Java+HttpComponents-Client-4.5
2023-03-09 17:55:45 +08:00
..
AuthNoCachePostFile.java initial commit 2023-03-09 17:55:45 +08:00
README.md initial commit 2023-03-09 17:55:45 +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.