Skip to content
Advertisement

Tag: bad-request

400 Bad request from Http request using java

I am following the “4. Java Socket Client Example: a HTTP Client” instruction from https://www.codejava.net/java-se/networking/java-socket-client-examples-tcp-ip in my Mac using IntelliJ. The Http config is as easy as: I copied the code without any change in the IntelliJ to test how would it work. However, after I did “java HttpClient.java” and “java HttpClient http://www.codejava.net/java-core” as indicated, what I got is: I

Advertisement