Using TCP/IP Monitor in MyEclipse
Open method:
window-->show view-->other-->myeclipse common-->tcp/ip Monitor
Right---properties--see
Function: Monitor the data transfer between customer service and server, play the role of Intermediate bridge
Principle: Play the role of the Middle bridge, open a port, customer service side access not directly to the server but first access to the port
That is, each customer service to the server to send the request has first passed minitor,minitor in the request (data) sent to the server
In fact, we use the customer service, such as Web page fill data to be transmitted to the server via the HTTP protocol
But the request and response we see is only part of the data, and the browser is wrapped before it is transmitted to the server via HTTP
(The browser will send some additional data by default in the process of requesting, responding.)
So the HTTP transmission of data not only includes the Web source, we fill in the data,
There are some packaging data, as well, the server responds to the same data transmission
So when we use Sorket to simulate browser access on the Android side
It is important to understand what data the HTTP transmits or how to emulate the browser????
How to use Socke to access the server???
You can use the socket to impersonate a browser to access Get,post requests
In fact the Tomcate server itself is a socket program externally exposed port 8080
In fact, the browser itself is the customer service side
We can use the socket customer service directly to access the server is also possible, but!!! Some problems with the direct access process
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
How to use TCP/IP monitor and its role