{"repo":"rockswang/java-curl","free":true,"listed":false,"github":"https://github.com/rockswang/java-curl","clone":"git clone https://github.com/rockswang/java-curl.git","description":"Pure java CURL implementation","language":"Java","stars":193,"topics":["curl","https","proxy","java","jsoup","scrapy"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"中文说明 Introduction java-curl is a pure-java HTTP utility implemented based on HttpURLConnection in the standard JRE, while the usage references to the commonly-used CURL command line tool under Linux. Features Based on the standard JRE, the source compatibility level is 1.6, can be used on Java server-side, Android and other Java environments. The code is super compact (one java file with less than 2000 lines), without any external dependencies, can be easily reused at source level. Easy to use, fully compatible with the most common switches of CURL tool, can be directly used as a command line tool. Support all HTTP methods; Support multi-part file uploads; Support simple HTTP authentication. Use ThreadLocal to solve the problem that cookies can only be stored globally in standard Java, cookies are maintained isolated for each thread. The cookie-store in the thread can be serialized and saved, which is convenient for setting up a cookie pool. Support HTTPS; Support self-signed certificate (JKS/BKS); Support ignoring certificate security check. Support per-connection proxy; Support HTTP/HTTPS proxy authorization. The redirect behavior can be controlled, and the response headers of each redirect-step can be obtained. Support programming custom response resolver, easy to convert raw responses into JSON/HTML/XML format directly with Jackson/Gson/Jsoup/DOM4J or other 3rd-party libraries. Support failed retry, programmable custom recoverable exceptions. Description About switches an","default_branch":null,"files":null,"tree":[],"storefront":"/r/rockswang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rockswang/java-curl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}