|
|
@ -298,7 +298,7 @@ class AnalyzeUrl( |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
RxHttp.postForm(url) |
|
|
|
RxHttp.postForm(url) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.addAll(fieldMap) |
|
|
|
.addAllEncoded(fieldMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.toStrResponse().await() |
|
|
|
.toStrResponse().await() |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -311,7 +311,7 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
else -> RxHttp.get(url) |
|
|
|
else -> RxHttp.get(url) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.addAll(fieldMap) |
|
|
|
.addAllEncoded(fieldMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.toStrResponse().await() |
|
|
|
.toStrResponse().await() |
|
|
|
} |
|
|
|
} |
|
|
@ -324,7 +324,7 @@ class AnalyzeUrl( |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
if (fieldMap.isNotEmpty()) { |
|
|
|
RxHttp.postForm(url) |
|
|
|
RxHttp.postForm(url) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.addAll(fieldMap) |
|
|
|
.addAllEncoded(fieldMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.addAllHeader(headerMap) |
|
|
|
.toByteArray().await() |
|
|
|
.toByteArray().await() |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -337,7 +337,7 @@ class AnalyzeUrl( |
|
|
|
} |
|
|
|
} |
|
|
|
else -> RxHttp.get(url) |
|
|
|
else -> RxHttp.get(url) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.setOkClient(HttpHelper.getProxyClient(proxy)) |
|
|
|
.addAll(fieldMap) |
|
|
|
.addAllEncoded(fieldMap) |
|
|
|
.toByteArray().await() |
|
|
|
.toByteArray().await() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|