HTTP requests have eight of methods Get,post,head,put,delete,options,trace,connect,get and post are more commonly used, as a result of project development needs, began to study the put request method, in fact, and the Post request method is similar.
Http defines different methods for interaction with the server. There are four basic methods: GET, POST, PUT, and DELETE. The full name of a URL is a resource descriptor. We can think that a URL address is used to describe resources on a network,
Tag:sage tin byte line receive har ext1 readline rect public void Testhttp () {String result = ""; try {URL posturl = new URL ("Http://localhost:8080/webTest/TestSerlvte"); HttpURLConnection conn =
HTTP request has eight methods Get,post,head,put,delete,options,trace,connect,get and post are commonly used, due to project development needs, began to study the PUT request method, in fact, and the Post request method is similar. Here's a look at
Note: This article is a personal study excerpt, the original address is: http://javaeedevelop.iteye.com/blog/1725299An HTTP request was a class consisting of HTTP style requests, request lines, request methods, request URL, header fields, and body
Want to send a POST request with the Jersey framework, body with JSON format parameterUrl:http//192.168.1.211/api/testThe body data is {"Action": "Test"}The implementation is as follows:Note: The reference jar package must be correct, or debug a
One, what is put request
The put request is a request that the server store a resource and use Request-uri as its identity, similar to post, but not commonly used, and put requests are relatively rare. This is not supported by HTML forms either. In
The http/1.1 standard has been a widely used and prevailing standard since its inception in 1999.Related documentsRfc2616:hypertext Transfer Protocol--http/1.1In RFC6585, the status codes 428, 429, 431, 511 are added inRFC2616 developed a series of
Int send (socket S, const char far * Buf, int Len, int flags );
Both the client and server applications use the send function to send data to the other end of the TCP connection.
The client program generally uses the send function to send requests
Configuration in 1.web.xmlConfiguration Org.springframework.web.filter.HiddenHttpMethodFilter: Can convert a POST request to a DELETE or put request-HiddenHttpMethodFilterorg.springframework.web.filter.HiddenHttpMethodFilterHiddenHttpMethodFilter/*2.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.