Patent ID: 8116261

Claim:
A gateway server which relays an HTTP request message sent from a terminal on a first network to a content server on a second network while relaying an HTTP response message sent from the content server to the terminal, the gateway server comprising: a request message receiving unit which receives the HTTP request message sent from the terminal; an identification information extracting unit which extracts identification information on the terminal from the HTTP request message, wherein the identification information identifies the terminal that sent the HTTP request message; an identification information storing unit which stores the extracted identification information; a request message transmitting unit which transmits the HTTP request message to the content server; an advertisement selecting unit which selects advertisement data to be added to a header part of the HTTP response message from multiple pieces of advertisement data, the selecting based on the identification information stored in the identification information storing unit; and a response message receiving unit which receives the HTTP response message from the content server, wherein the gateway server adds the selected advertisement data to the header part of the HTTP response message before sending the HTTP response message to the terminal, wherein the advertisement data includes advertising content to be displayed to a user of the terminal.