Skip to content

Commit cfc6dcd

Browse files
committed
Update README.md
1 parent 13be828 commit cfc6dcd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
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/"));
1120
String[] 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/"));
1726
request.setTimeout(10000);
1827
request.setPostData("postdata=yes&awesome=yup");
1928
request.setReferer("http://google.com/");

0 commit comments

Comments
 (0)