sridhar gandikota wrote:
1) is there any limit on number of characters to PUT request like GET
No. Unlike a GET, the payload is in the request body, not on the URL.
2)This program is not working can you please let me know what is the wrong with code
What's wrong is your basic assumptions. It makes no sense to make a PUT request to a file. If you think that something will magically update the file, you are mistaken. The PUT request must be made to a
servlet or other active element that knows how to deal with PUT requests.
3)If I access the file using PUT request should I write the data in chunks(shown in comments) or can I write the data at one full stretch like I have shown above.
The data should in the body of the request.