Getting “411 Length Required” after a PUT request from HTTP Client
I am working on a Java program that implements an HTTP Client. I test it sending requests to a server. GET, POST and DELETE requests work ok. For example after a POST request I get an output Data extracted: {"status":{"message":"ok"}} and the database reflects the changes made. After a PUT request, however I get the following html markup of a webpage indicating an error. Data extracted: <html> <head><title>411 Length Required</title></head> <body bgcolor="white"> <center><h1>411 Length Required</h1></center> <hr><center>nginx/1.2.6</center> </body> </html> and accordingly no changes in the