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


source to share





All Articles