Nice to meet you :) each of them sometimes happens. According to your question, if you want to interact with the web server inside the web page, you can send the form (POST web request to the web application) or request the URL (get the web request from the URL) if you want to send something to the server, you can POST the parameters you want, and when the server receives the request, it will perform some functions and give you an answer. POST example:
POST www.xxxx.com?name=asdf HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 97
Host: www.xxxx.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
answer:
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
Date: Thu, 31 Oct 2013 08:04:29 GMT
Transfer-Encoding: chunked
Connection: Keep-Alive
<html><body>Hello World</body></html>
I hope for this help.
source
share