File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 11# HTTPRequest
2- This is a very simple HTTPRequest wrapper.
2+ HTTPRequest is an easy-to-use zero dependency Java wrapper to read from a URL .
33
4- Supports defining cookies , proxies, post data, and custom useragents .
4+ Support for Cookies , proxies, UserAgent, post data and more .
55
6- ## Example Usage:
6+ ## How To Add As Library
7+ Add it as a maven dependecy or just [ download the latest release] ( https://github.com/Konloch/HTTPRequest/releases ) .
8+ ``` xml
9+ <dependency >
10+ <groupId >com.konloch</groupId >
11+ <artifactId >HTTPRequest</artifactId >
12+ <version >2.0.0</version >
13+ </dependency >
14+ ```
715
16+ ## How To Use
817** Simple Request:**
918``` java
10- HTTPRequest request = new HTTPRequest (new URL (" http ://the.bytecode.club /" ));
19+ HTTPRequest request = new HTTPRequest (new URL (" https ://google.com /" ));
1120String [] webpage = request. read();
1221```
1322
14- ** Complex Request:**
23+ ** Advanced Request:**
1524``` java
16- HTTPRequest request = new HTTPRequest (new URL (" http ://the.bytecode.club /" ));
25+ HTTPRequest request = new HTTPRequest (new URL (" https ://google.com /" ));
1726request. setTimeout(10000 );
1827request. setPostData(" postdata=yes&awesome=yup" );
1928request. setReferer(" http://google.com/" );
You can’t perform that action at this time.
0 commit comments