Bad request. Your browser sent a request that this server could not understand. The delimiter is missing in the Request header field ::

I am writing Java code for an HTTP Proxy application. In this case, the browser request is not being sent as expected, so the server gives the response as

Bad request. Your browser sent a request that this server could not understand. The :: delimiter is missing in the request header field. I don't understand why the error is happening.

I am new to java so I know the solution to this question.

Request:

GET / HTTP/1.1<br>Host: www.google.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

      

I have an error in my request, but I cannot determine it.

SO anyone can help me solve my problem.

+3
java proxy sockets http-error bad-request


source to share


No one has answered this question yet

Check out similar questions:

3
jsoup Java hosting
2
Rebuild request header from HTTP proxy to remote server in C
1
How can I receive data from a socket continuously?
1
Session is lost when switching from one page to another
0
Can't connect to Couchbase Server on Windows machine on localhost 8091
0
Java loading text file results in HTML code instead of text
0
Can't read form data of http request in java
0
How does Spring MVC make the HttpServletRequest field streamed?
0
'and everything after that is not sent by the browser
-1
problems writing proxy C



All Articles
Loading...
X
Show
Funny
Dev
Pics