rawhttp
rawhttp copied to clipboard
HTTP library to make it easy to deal with raw HTTP.
Code to try it out: ```java package my; import rawhttp.core.RawHttp; import rawhttp.core.client.TcpRawHttpClient; import rawhttp.core.server.TcpRawHttpServer; import java.io.IOException; import java.net.Socket; import java.util.Scanner; import java.util.concurrent.atomic.AtomicBoolean; import static java.util.Optional.ofNullable; public class TestServer { static...
To be able to test local services without TLS cert verification.
Nashorn is deprecated in Java 11 and will be removed in Java 17. Running on Java 11 already causes warnings.
It would be useful if one could parse multipart requests. There is [commons-fileupload](http://commons.apache.org/proper/commons-fileupload/) but it depends on the servlet-api. certainly this is not a simple task, caveat https://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet see https://tools.ietf.org/html/rfc7578
The following request: ```http POST {{baseUrl}}/dev/oauth/token # Client Credentials flow POSTs a HTML form and receives JSON back Content-Type: application/x-www-form-urlencoded client_id=client&client_secret=Secret&grant_type=client_credentials ``` Is being sent without the header! ```bash ▶...
```java RawHttp rawHttp = new RawHttp(RawHttpOptions.newBuilder() .allowIllegalStartLineCharacters() .allowContentLengthMismatch() .allowComments() .allowIllegalConnectAuthority() .build()); ``` I am trying to send some naughty requests via rawhttp, and its complaining about illegal start line characters...