+ * List urlParameters = new ArrayList<>();
+ * urlParameters.add(new BasicNameValuePair("username", "abc"));
+ * urlParameters.add(new BasicNameValuePair("password", "123"));
+ * urlParameters.add(new BasicNameValuePair("custom", "secret"));
+ *
+ * post.setEntity(new UrlEncodedFormEntity(urlParameters));
+ *
+ * @param url
+ * @return
+ * @throws IOException
+ */
+ public static String sendPost(String url) throws IOException {
+
+ HttpPost post = new HttpPost(url);
+
+ try (CloseableHttpClient httpClient = HttpClients.createDefault();
+
+ CloseableHttpResponse response = httpClient.execute(post)){
+
+ return EntityUtils.toString(response.getEntity());
+ }
+
+ }
+}
diff --git a/src/main/java/org/starrier/common/utils/request/README.md b/src/main/java/org/starrier/common/utils/request/README.md
new file mode 100644
index 0000000..e69de29
diff --git a/src/main/java/org/starrier/common/utils/request/package-info.java b/src/main/java/org/starrier/common/utils/request/package-info.java
new file mode 100644
index 0000000..021ac09
--- /dev/null
+++ b/src/main/java/org/starrier/common/utils/request/package-info.java
@@ -0,0 +1,5 @@
+/**
+ * @author starrier
+ * @date 2021/1/25
+ */
+package org.starrier.common.utils.request;
\ No newline at end of file
diff --git a/src/main/test/org/starrier/common/utils/request/HttpsUtilsTest.java b/src/main/test/org/starrier/common/utils/request/HttpsUtilsTest.java
new file mode 100644
index 0000000..f0ac781
--- /dev/null
+++ b/src/main/test/org/starrier/common/utils/request/HttpsUtilsTest.java
@@ -0,0 +1,30 @@
+package org.starrier.common.utils.request;
+
+import org.apache.http.util.Asserts;
+import org.junit.jupiter.api.Test;
+
+import java.io.IOException;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+/**
+ * @author starrier
+ * @date 2021/1/25
+ */
+class HttpsUtilsTest {
+
+ @Test
+ void sendPostWithJson() {
+ }
+
+ @Test
+ void sendGetWithHeader() {
+ }
+
+ @Test
+ void sendPost() throws IOException {
+
+ String starrierRepos = HttpsUtils.sendPost("https://api.github.com/users/Starrier/repos");
+ Asserts.notNull(starrierRepos,"not null");
+ }
+}
\ No newline at end of file