The invention provides a double-stack unified access method and system based on an HTTP protocol. According to the invention, a unified IP address is described by constructing a data structure; addingthe host name, the service name of the corresponding port, the port, the address protocol family type, the joint type, the length of the current socket address, the length of the IP address structureand the length of the IP address buffer into the data structure; in the analysis process, the IPv4 and the IPv6 processing priority are identified by utilizing the flag bit; consequently, IP addressresolution is accomplished, an IPv4 and v6 dual-stack unified interface is realized; details of network connection are effectively shielded; the method is used for solving the problems that in the prior art, HTTP application software monitors IPv4 and v6 protocol addresses at the same time, an implementation method is complex, the code coupling degree is high, and maintenance is relatively complex, has high flexibility, hides internal details of the HTTP application software, is simple and easy to use for users, and has good packaging characteristics.