xhttp-jdk_5

a http https util

License

License

GroupId

GroupId

com.github.120011676
ArtifactId

ArtifactId

xhttp-jdk_5
Last Version

Last Version

1.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

xhttp-jdk_5
a http https util
Project URL

Project URL

https://github.com/120011676/xhttp
Source Code Management

Source Code Management

https://github.com/120011676/xhttp

Download xhttp-jdk_5

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.120011676/xhttp-jdk_5/ -->
<dependency>
    <groupId>com.github.120011676</groupId>
    <artifactId>xhttp-jdk_5</artifactId>
    <version>1.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.120011676/xhttp-jdk_5/
implementation 'com.github.120011676:xhttp-jdk_5:1.3.0'
// https://jarcasting.com/artifacts/com.github.120011676/xhttp-jdk_5/
implementation ("com.github.120011676:xhttp-jdk_5:1.3.0")
'com.github.120011676:xhttp-jdk_5:jar:1.3.0'
<dependency org="com.github.120011676" name="xhttp-jdk_5" rev="1.3.0">
  <artifact name="xhttp-jdk_5" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.120011676', module='xhttp-jdk_5', version='1.3.0')
)
libraryDependencies += "com.github.120011676" % "xhttp-jdk_5" % "1.3.0"
[com.github.120011676/xhttp-jdk_5 "1.3.0"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

xhttp

一个java http操作工具

releases maven

java 7:
<dependency>
    <groupId>com.github.120011676</groupId>
    <artifactId>xhttp-jdk_7</artifactId>
    <version>1.1.0</version>
</dependency>
java 5:
<dependency>
    <groupId>com.github.120011676</groupId>
    <artifactId>xhttp-jdk_5</artifactId>
    <version>1.1.0</version>
</dependency>
java 1.4:
<dependency>
    <groupId>com.github.120011676</groupId>
    <artifactId>xhttp-jdk_1.4</artifactId>
    <version>1.1.0</version>
</dependency>

example

String userAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36";
String html = XHttp.url("https://www.baidu.com/s")
        .userAgent(userAgent)
        .data("wd", "ss&sc").get().dataToString();
System.out.println(html);

Versions

Version
1.3.0
1.2.0
1.1.0