JP6297331B2 - Web server and program - Google Patents

Web server and program Download PDF

Info

Publication number
JP6297331B2
JP6297331B2 JP2013542796A JP2013542796A JP6297331B2 JP 6297331 B2 JP6297331 B2 JP 6297331B2 JP 2013542796 A JP2013542796 A JP 2013542796A JP 2013542796 A JP2013542796 A JP 2013542796A JP 6297331 B2 JP6297331 B2 JP 6297331B2
Authority
JP
Japan
Prior art keywords
client
http
message
web server
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013542796A
Other languages
Japanese (ja)
Other versions
JPWO2013069163A1 (en
Inventor
隆也 嘉藤
隆也 嘉藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MUFG Bank Ltd
Original Assignee
Bank of Tokyo Mitsubishi UFJ Trust Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of Tokyo Mitsubishi UFJ Trust Co filed Critical Bank of Tokyo Mitsubishi UFJ Trust Co
Publication of JPWO2013069163A1 publication Critical patent/JPWO2013069163A1/en
Application granted granted Critical
Publication of JP6297331B2 publication Critical patent/JP6297331B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Description

本発明は、ウェブサーバ及びウェブページの表示方法に関する。本発明は、より詳細には、クライアントのアドレス及びHTTPリクエスト内の情報を用いて認証を行う装置及び方法などに関する。   The present invention relates to a web server and a web page display method. More particularly, the present invention relates to an apparatus and method for performing authentication using a client address and information in an HTTP request.

近年、ウェブページをブラウジング(閲覧)することは広く行われている。インターネットを通じて広く世界中のウェブページが閲覧可能となっている。日本の企業のウェブページに対しても、日本国内のみならず、日本国外のユーザがアクセスするケースが増えている。また、日本国内から日本語を母国語としないユーザがアクセスすることもあるし、日本国外から日本語を母国語としたユーザがアクセスすることもある。   In recent years, browsing (browsing) web pages has been widely performed. Web pages around the world can be browsed widely through the Internet. Increasingly, not only in Japan but also users outside Japan access web pages of Japanese companies. A user who does not speak Japanese as a native language may access from within Japan, and a user who uses Japanese as his native language may access from outside Japan.

特開2006−254023号公報JP 2006-254023 A

そこで、ユーザの属性に応じたウェブページを表示する技術が望まれている。また、できるだけ簡易かつ正確にユーザの属性を判別する技術が望まれている。 Therefore, a technique for displaying a web page according to the user's attribute is desired. In addition, a technique for discriminating user attributes as simply and accurately as possible is desired.

本発明は、クライアント側における複雑な手続きが不要で、かつユーザの属性を正確に判別してユーザの属性に応じたウェブページを表示できるウェブサーバ及びウェブページの表示方法を提供することを目的とする。   An object of the present invention is to provide a web server and a web page display method that do not require a complicated procedure on the client side, and that can accurately identify a user attribute and display a web page according to the user attribute. To do.

本発明の一実施形態として、クライアントから送信されたHTTPリクエストを含む電文を受信する電文受信部と、前記HTTPリクエストのHTTPヘッダに設定されたユーザエージェント情報を取得するHTTPヘッダ取得部と、前記電文の受信時刻を取得する時刻管理部と、前記ユーザエージェント情報及び前記受信時刻の間隔に応じたコンテンツを前記クライアントにおいて表示するための送信データを当該クライアントへと送信する電文送信部とを有するウェブサーバを提供する。
As one embodiment of the present invention, a message reception unit that receives a message including an HTTP request transmitted from a client, an HTTP header acquisition unit that acquires user agent information set in an HTTP header of the HTTP request, and the message Web server comprising: a time management unit for acquiring a reception time of a message; and a telegram transmission unit for transmitting transmission data for displaying content according to the user agent information and the interval of the reception time on the client to the client I will provide a.

また、本発明の一実施形態として、コンピュータを、クライアントから送信されたHTTPリクエストを含む電文を受信する電文受信部と、前記HTTPリクエストのHTTPヘッダに設定されたユーザエージェント情報を取得するHTTPヘッダ取得部と、前記電文の受信時刻を取得する時刻管理部と、前記ユーザエージェント情報及び前記受信時刻の間隔に応じたコンテンツを前記クライアントにおいて表示するための送信データを当該クライアントへと送信する電文送信部とを有するウェブサーバとして機能させるためのプログラムを提供する。

In one embodiment of the present invention, the computer receives a message including a HTTP request transmitted from a client, and acquires an HTTP header that acquires user agent information set in the HTTP header of the HTTP request. Unit, a time management unit that acquires the reception time of the message, and a message transmission unit that transmits to the client transmission data for displaying content according to the user agent information and the interval of the reception time on the client A program for functioning as a web server is provided.

本発明により、クライアント側における複雑な手続きが不要で、かつユーザの属性に応じたウェブページを表示できるウェブサーバ及びウェブページの表示方法を提供することができる。   According to the present invention, it is possible to provide a web server and a web page display method that can display a web page according to a user attribute without requiring a complicated procedure on the client side.

本発明の一実施形態に係るウェブサーバの構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the web server which concerns on one Embodiment of this invention. IPヘッダのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of an IP header. HTTPヘッダのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of an HTTP header. 本発明の一実施形態に係るウェブサーバを用いて表示したウェブページの一例である。It is an example of the web page displayed using the web server which concerns on one Embodiment of this invention. 本発明の一実施形態に係るウェブサーバを用いて表示したウェブページの一例である。It is an example of the web page displayed using the web server which concerns on one Embodiment of this invention. 本発明の一実施形態に係るウェブサーバを用いて表示したウェブページの一例である。It is an example of the web page displayed using the web server which concerns on one Embodiment of this invention. 本発明の一実施形態に係るウェブサーバを用いて表示したウェブページの一例である。It is an example of the web page displayed using the web server which concerns on one Embodiment of this invention. 本発明の他の実施形態に係るウェブサーバの構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the web server which concerns on other embodiment of this invention. 本発明の一実施形態に係るウェブページの表示方法の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of the display method of the web page which concerns on one Embodiment of this invention. 本発明の他の実施形態に係るウェブページの表示方法の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of the display method of the web page which concerns on other embodiment of this invention.

以下、図面を参照して本発明に係るウェブサーバ及びウェブページの表示方法について説明する。但し、本発明に係るウェブサーバは多くの異なる態様で実施することが可能であり、以下に示す実施の形態及び実施例の記載内容に限定して解釈されるものではない。なお、実施形態及び実施例で参照する図面において、同一部分又は同様な機能を有する部分には同一の符号を付し、その繰り返しの説明は省略する。 Hereinafter, a web server and a web page display method according to the present invention will be described with reference to the drawings. However, the web server according to the present invention can be implemented in many different modes, and should not be construed as being limited to the description of the embodiments and examples shown below. Note that in the drawings referred to in the embodiments and examples, the same portions or portions having similar functions are denoted by the same reference numerals, and repetitive description thereof is omitted.

(実施形態1)
図1は、本発明の一実施形態に係るウェブサーバの構成を示す機能ブロック図である。
(Embodiment 1)
FIG. 1 is a functional block diagram showing a configuration of a web server according to an embodiment of the present invention.

図1を参照すると、本発明の一実施形態に係るウェブサーバ100は、電文受信部110、送信元アドレス解析部120、HTTPヘッダ解析部130、レスポンス作成部140、電文送信部150を有する。   Referring to FIG. 1, a web server 100 according to an embodiment of the present invention includes a message reception unit 110, a transmission source address analysis unit 120, an HTTP header analysis unit 130, a response creation unit 140, and a message transmission unit 150.

本発明におけるウェブサーバ100は、物理的に1台のサーバでも、複数台のクラスタリングされたサーバにより構成されてもよく、また、複数のアプリケーション、プラットフォーム、及びインフラストラクチャから構成されたいわゆるクラウドコンピューティングの形態であってもよい。 The web server 100 according to the present invention may be physically configured by a single server or a plurality of clustered servers, and is a so-called cloud computing configured by a plurality of applications, platforms, and infrastructures. It may be a form.

ウェブサーバ100は、クライアント200とネットワーク接続されている。ウェブサーバ100は、クライアント200のHTTPユーザエージェント210から送信されたHTTPリクエストに応じて、クライアント200に対して、HTTPレスポンスを送信してウェブサービスを提供する。 The web server 100 is connected to the client 200 via a network. In response to the HTTP request transmitted from the HTTP user agent 210 of the client 200, the web server 100 provides the web service by transmitting an HTTP response to the client 200.

HTTPユーザエージェント210は、例えばウェブブラウザであるが、これに限られず、検索エンジンのクローラなどでもよい。 The HTTP user agent 210 is, for example, a web browser, but is not limited thereto, and may be a crawler of a search engine.

電文受信部110は、クライアント200とインターネット等のネットワークを介して接続するためのインターフェースである。電文受信部110は、通信プロトコルとしてのTCP/IPに対応している。そして電文受信部110は、クライアント200のHTTPユーザエージェント210より送信されたHTTPリクエストを含む電文を受信する。 The message receiving unit 110 is an interface for connecting to the client 200 via a network such as the Internet. The message receiving unit 110 is compatible with TCP / IP as a communication protocol. Then, the message receiving unit 110 receives a message including an HTTP request transmitted from the HTTP user agent 210 of the client 200.

送信元アドレス解析部120は、電文受信部110により受信された電文を解析しクライアント200のアドレスを取得する。送信元アドレス解析部120は、例えば、電文受信部110で受信した電文のIPヘッダを解析して、クライアント200のアドレスを取得する。 The transmission source address analysis unit 120 analyzes the message received by the message reception unit 110 and acquires the address of the client 200. The transmission source address analysis unit 120, for example, analyzes the IP header of the message received by the message reception unit 110 and acquires the address of the client 200.

すなわち、送信元アドレス解析部120は、電文のIPパケットからIPヘッダを抽出する。そして、IPヘッダの記述から、送信元アドレス(Source Address)のスロットを取得することによって、クライアント200のアドレスを送信元アドレスとして取得する。IPヘッダは、例えば図2に示すようなIPヘッダ10であって、そのうち、送信元アドレス11を確認し、送信元アドレス11が「170.2.27.65」であることから、クライアント200のアドレスが「170.2.27.65」であると認識する。送信元アドレス解析部120は、認識した送信元アドレスをレスポンス作成部140へと受け渡す。 That is, the source address analysis unit 120 extracts an IP header from the IP packet of the message. Then, the address of the client 200 is acquired as the source address by acquiring the slot of the source address (Source Address) from the description of the IP header. The IP header is, for example, the IP header 10 as shown in FIG. 2, in which the source address 11 is confirmed and the source address 11 is “170.27.65”. It recognizes that the address is “170.27.65”. The transmission source address analysis unit 120 passes the recognized transmission source address to the response creation unit 140.

HTTPヘッダ解析部130は、クライアント200から送信されたHTTPリクエストから、HTTPヘッダを抽出し、HTTPヘッダの記述を確認し、必要な情報を取得する。 The HTTP header analysis unit 130 extracts the HTTP header from the HTTP request transmitted from the client 200, confirms the description of the HTTP header, and acquires necessary information.

例えば、HTTPヘッダ解析部130は、HTTPヘッダの記述の中から「Accept−Language」の部分を取得する。すなわち、HTTPヘッダ解析部130は、図3に示すようなHTTPリクエストのHTTPヘッダ20の記述を確認する場合には、「Accept−Language」21の記述を確認する。「Accept−Language」21の記載は、「ja,en;q=0.5」であるため、HTTPヘッダ解析部130は、HTTPユーザエージェント210の受け入れ可能言語が日本語と英語とであることを認識する。HTTPヘッダ解析部130は、認識した受け入れ可能言語の情報を、レスポンス作成部140へと受け渡す。これにより、後述のレスポンス作成部140において、クライアント200のHTTPユーザエージェント210の受け入れ可能言語に基づいてレスポンスのデータを作成することができる。 For example, the HTTP header analysis unit 130 acquires the “Accept-Language” portion from the description of the HTTP header. That is, the HTTP header analysis unit 130 confirms the description of “Accept-Language” 21 when confirming the description of the HTTP header 20 of the HTTP request as shown in FIG. Since the description of “Accept-Language” 21 is “ja, en; q = 0.5”, the HTTP header analysis unit 130 indicates that the acceptable languages of the HTTP user agent 210 are Japanese and English. recognize. The HTTP header analysis unit 130 passes the information on the recognized acceptable language to the response creation unit 140. As a result, the response creation unit 140 described later can create response data based on the acceptable language of the HTTP user agent 210 of the client 200.

なお、HTTPヘッダ解析部130は、「Accept−Language」の記載に限られず、その他のHTTPヘッダの記載をレスポンス作成部140へ受け渡してもよい。例えば、「User−Agent」の記述を確認して、HTTPユーザエージェント210の種類を確認し、その種類に応じたデータをレスポンス作成部140において選択できるようにしてもよい。 Note that the HTTP header analysis unit 130 is not limited to the description of “Accept-Language”, and other HTTP header descriptions may be transferred to the response creation unit 140. For example, the description of “User-Agent” may be confirmed, the type of the HTTP user agent 210 may be confirmed, and data corresponding to the type may be selected in the response creation unit 140.

レスポンス作成部140は、送信元アドレス解析部120から受け渡されたクライアント200のアドレス及びHTTPヘッダ解析部130より受け渡された情報に基づいて、クライアント200へと送信するHTTPレスポンスの内容を決定し、HTTPレスポンスのデータを作成する。なお、ここで作成とは、予め複数作成したデータから、クライアント200のアドレスとHTTPヘッダ解析部130より受け渡された情報とに応じて送信するデータを選択することも含む。 The response creation unit 140 determines the content of the HTTP response to be transmitted to the client 200 based on the address of the client 200 delivered from the transmission source address analysis unit 120 and the information delivered from the HTTP header analysis unit 130. , HTTP response data is created. Here, the creation includes selecting data to be transmitted according to the address of the client 200 and the information passed from the HTTP header analysis unit 130 from a plurality of data created in advance.

HTTPヘッダ解析部130において、「Accept−Language」の記述を確認して受け入れ可能言語の情報をレスポンス作成部140へ受け渡した場合、レスポンス作成部140は、クライアント200のアドレスと受け入れ可能言語との組合せにより、HTTPレスポンスとしてクライアント200へと送信するデータの内容を決定しHTTPレスポンスのデータを作成する。 When the HTTP header analysis unit 130 confirms the description of “Accept-Language” and passes the information on the acceptable language to the response creation unit 140, the response creation unit 140 combines the address of the client 200 with the acceptable language. Thus, the content of data to be transmitted to the client 200 as an HTTP response is determined, and HTTP response data is created.

例えば、「Accept−Language」に「ja」の記述があり、受け入れ可能言語として日本語を含む場合で、クライアント200のアドレスから、クライアント200が日本国内に存在することを確認した場合、レスポンス作成部140は、日本国内に在住する日本語でのコミュニケーション可能な者向けのコンテンツを提供するためのデータをHTTPレスポンスに含める。この場合、レスポンス作成部140は、例えば図4のようなウェブページを表示させるためのHTTPレスポンスのデータを作成する。これにより、日本国内に居住している日本語が理解できる人向けのウェブページがクライアント200に送信される。 For example, in the case where “ja” is described in “Accept-Language” and Japanese is included as an acceptable language, it is confirmed from the address of the client 200 that the client 200 exists in Japan. 140 includes, in the HTTP response, data for providing content for a person who lives in Japan and can communicate in Japanese. In this case, the response creation unit 140 creates HTTP response data for displaying a web page as shown in FIG. 4, for example. As a result, a web page for a person who understands Japanese living in Japan is transmitted to the client 200.

例えば、「Accept−Language」に「ja」の記述がなく、「zh」の記述があり、受け入れ可能言語が中国語である場合で、クライアント200のアドレスから、クライアント200が日本国内に存在することを確認した場合、レスポンス作成部140は、日本国内に在住する中国語でのコミュニケーション可能な者向けのコンテンツを提供するためのデータをHTTPレスポンスへと含める。この場合、レスポンス作成部140は、例えば図5のようなウェブページを表示させるためのHTTPレスポンスのデータを作成する。これにより、日本国内に居住しているが中国語しか理解できない人向けのウェブページがクライアント200に送信される。 For example, “Accept-Language” has no description of “ja”, has a description of “zh”, and the acceptable language is Chinese, and the client 200 exists in Japan from the address of the client 200. When the response is confirmed, the response creation unit 140 includes, in the HTTP response, data for providing content for those who can communicate in Chinese living in Japan. In this case, the response creation unit 140 creates HTTP response data for displaying a web page as shown in FIG. 5, for example. Accordingly, a web page for a person who lives in Japan but understands only Chinese is transmitted to the client 200.

例えば、「Accept−Language」に「ja」の記述があり、受け入れ可能言語に日本語を含む場合で、クライアント200のアドレスから、クライアント200が日本国外に存在することを確認した場合、レスポンス作成部140は、日本国外に在住する日本語でのコミュニケーション可能な者向けのコンテンツを提供するためのデータをHTTPレスポンスへと含める。この場合、レスポンス作成部140は、例えば図6のようなウェブページを表示させるためのHTTPレスポンスのデータを作成する。これにより、日本国外に居住している日本語が理解できる人向けのウェブページがクライアント200に送信される。 For example, in the case where “ja” is described in “Accept-Language” and Japanese is included in the acceptable language, and it is confirmed from the address of the client 200 that the client 200 exists outside Japan, a response creation unit 140 includes, in the HTTP response, data for providing content for those who live outside of Japan and can communicate in Japanese. In this case, the response creation unit 140 creates HTTP response data for displaying a web page as shown in FIG. 6, for example. Thereby, a web page for a person who can understand Japanese living outside Japan is transmitted to the client 200.

例えば、「Accept−Language」に「en」の記述のみがあり、受け入れ可能言語が英語である場合で、クライアント200のアドレスから、クライアント200が日本国外に存在することを確認した場合、レスポンス作成部140は、英語によるコミュニケーションが可能である日本国外に在住する者向けのコンテンツを提供するためのデータをHTTPレスポンスへと含める。この場合、レスポンス作成部140は、例えば図6のようなウェブページを表示させるためのHTTPレスポンスのデータを作成する。これにより、日本国外に居住している英語しか理解できない人向けのウェブページがクライアント200に送信される。 For example, when only “en” is described in “Accept-Language” and the acceptable language is English, and it is confirmed from the address of the client 200 that the client 200 exists outside Japan, a response creation unit 140 includes, in the HTTP response, data for providing content for those residing outside Japan who can communicate in English. In this case, the response creation unit 140 creates HTTP response data for displaying a web page as shown in FIG. 6, for example. Accordingly, a web page for a person who can only understand English living outside Japan is transmitted to the client 200.

このように、レスポンス作成部140において、クライアント200のアドレス及び受け入れ可能言語を把握し、その組み合わせに応じてHTTPレスポンスのデータを作成することにより、それぞれのユーザに応じたウェブページを表示することができる。 As described above, the response creation unit 140 grasps the address of the client 200 and the acceptable language, and creates the HTTP response data according to the combination, thereby displaying a web page corresponding to each user. it can.

なお、受け入れ可能言語ごとに異なるHTTPレスポンスのデータを作成せず、例えば受け入れ可能言語に日本語を含む場合と日本語を含まない場合、といった場合分けなどもレスポンス作成部140において適宜設定可能である。また、アドレスをより詳細に判別して、国より小さな、地域単位でデータを作成してもよいし、ある国の国内、国外、といった単位でなく国単位でデータを作成してもよい。 Note that the response creation unit 140 can appropriately set cases such as cases where the HTTP response data different for each acceptable language is not created, for example, the case where the acceptable language includes Japanese and the case where the acceptable language does not include Japanese. . Further, the address may be determined in more detail, and the data may be created in units of regions smaller than the country, or the data may be created in units of countries instead of units such as domestic and foreign countries.

また、HTTPヘッダの記述のうち、「Accept−Language」以外の「User−Agent」の記述などをさらに組み合わせて用いてもよい。 In addition, among the descriptions of the HTTP header, descriptions of “User-Agent” other than “Accept-Language” may be further combined.

レスポンス作成部140において作成したHTTPレスポンスのデータから、電文送信部150においてクライアント200に送信する電文を作成してクライアント200へと送信する。 From the HTTP response data created by the response creation unit 140, the message transmission unit 150 creates a message to be transmitted to the client 200 and transmits it to the client 200.

本実施形態により、クライアント側における複雑な手続きが不要で、かつユーザの属性を正確に判別してユーザの属性に応じたウェブページを表示できるウェブサーバが提供される。   According to the present embodiment, a web server that does not require a complicated procedure on the client side, and that can accurately determine a user attribute and display a web page according to the user attribute is provided.

(実施形態2)
次に、本発明の他の実施形態に係るウェブページの表示方法を図4を参照して説明する。
(Embodiment 2)
Next, a web page display method according to another embodiment of the present invention will be described with reference to FIG.

図4に係る本実施形態においては、図1を参照して説明した実施形態に加えて、時刻管理部160を有する。時刻管理部160は、電文の受信時刻及び電文の受信間隔等を判別し、記憶装置へと書き込み記憶する。時刻管理部160は、電文の受信時刻をウェブサーバ100の時計の示す時刻から取得してもよいし、電文自体にタイムスタンプなどの形式で時刻情報が含まれる場合、それを用いてもよい。   The present embodiment according to FIG. 4 includes a time management unit 160 in addition to the embodiment described with reference to FIG. The time management unit 160 determines the reception time of the message, the reception interval of the message, and the like, and writes and stores it in the storage device. The time management unit 160 may acquire the reception time of the message from the time indicated by the clock of the web server 100, or may use the time information included in the message itself in a format such as a time stamp.

時刻管理部160で取得した電文の受信時刻、受信時刻間隔は、レスポンス作成部140へただちに、またはレスポンス作成部140からの要求に応じて、レスポンス作成部140へと受け渡される。   The message reception time and the reception time interval acquired by the time management unit 160 are transferred to the response creation unit 140 immediately or in response to a request from the response creation unit 140.

レスポンス作成部140は、時刻管理部160から受け渡された受信時刻及びHTTPヘッダ解析部130より受け渡された情報に基づき、HTTPレスポンスの内容を決定する。   The response creation unit 140 determines the content of the HTTP response based on the reception time passed from the time management unit 160 and the information passed from the HTTP header analysis unit 130.

たとえば、HTTPヘッダのうち、「Accept−Language」と、受信時刻間隔を参照して、所定の受け入れ可能言語のHTTPユーザエージェント210より、所定の期間内に閾値以上の量の電文を受信している場合、HTTPレスポンスの内容を変更してもよい。   For example, with reference to “Accept-Language” in the HTTP header and the reception time interval, a message of an amount equal to or greater than a threshold is received within a predetermined period from the HTTP user agent 210 in a predetermined acceptable language. In this case, the content of the HTTP response may be changed.

また、変形例として、HTTPヘッダのうち、「Accept−Language」と、受信時刻間隔を参照した際に、通常、当該ウェブサーバ100が提供するウェブページへのアクセスが想定されていない所定の受け入れ可能言語が「Accept−Language」に記述されており、当該受け入れ可能言語が記述されたHTTPリクエストを、所定の期間内に、閾値を超えた量を受信したことをレスポンス作成部140において検知した場合、作成するHTTPレスポンスの内容を変えることなく、ウェブサーバ100の動作モードを変更する機能やウェブサーバ100の管理者へと何らかの通知を行う機能を、レスポンス作成部140が有してもよく、そうした機能を有する他のコンポーネントへとレスポンス作成部140が通知してもよい。   Moreover, as a modification, when “Accept-Language” in the HTTP header and the reception time interval are referred to, a predetermined acceptability that is not normally assumed to access the web page provided by the web server 100 is assumed. When the response creation unit 140 detects that the language is described in “Accept-Language” and the HTTP request in which the acceptable language is described has been received in an amount exceeding the threshold within a predetermined period, The response creation unit 140 may have a function of changing the operation mode of the web server 100 or a function of notifying the administrator of the web server 100 without changing the content of the HTTP response to be created. The response creation unit 140 passes to other components having It may be.

上記の動作モードを変更する一例を説明する。同じ受け入れ可能言語が記述されたHTTPリクエストを所定期間内に閾値を超えた量を受信した場合には、クライアント200からのHTTPリクエストの誤送信など、ユーザがHTTPレスポンスの受信を希望していないケースが考えられる。ウェブサーバ100のリソース確保のため、レスポンス作成部140ないしレスポンス作成部140から通知を受けた他のコンポーネントにより、ウェブサーバ100をスリープモードに変更して、クライアント200へのHTTPレスポンスをウェブサーバ100の通常の動作モードにおける応答速度よりも遅らせて送信してもよい。これにより、クライアント200のユーザからは、ウェブサーバ100の動作が遅くなっているように認識される。   An example of changing the above operation mode will be described. When the HTTP request in which the same acceptable language is described is received in an amount exceeding the threshold within a predetermined period, the user does not want to receive the HTTP response, such as erroneous transmission of the HTTP request from the client 200 Can be considered. In order to secure the resources of the web server 100, the web server 100 is changed to the sleep mode by the response creation unit 140 or another component notified from the response creation unit 140, and an HTTP response to the client 200 is sent to the web server 100. The transmission may be delayed with respect to the response speed in the normal operation mode. As a result, the user of the client 200 recognizes that the operation of the web server 100 is slow.

本変形例により、通常アクセスが想定されない受け入れ可能言語が記述されたHTTPリクエストに対して、ウェブサーバ100において自動で、または管理者において、より適切なアクションを行うことができる。例えば当該受け入れ可能言語向けのウェブページを表示するためのHTTPレスポンスを新たに作成するための準備を迅速に行うことなどもできる。   According to this modification, it is possible to perform a more appropriate action on the HTTP request in which an acceptable language that is not supposed to be normally accessed is described, either automatically in the web server 100 or in the administrator. For example, it is possible to quickly prepare for newly creating an HTTP response for displaying the web page for the acceptable language.

また、HTTPヘッダのうち、「User−Agent」と、電文の受信時刻の情報を用いて、レスポンス作成部140で作成するHTTPレスポンスの全部または一部の内容を変更してもよい。例えば、「User−Agent」で記述されたHTTPユーザエージェント220の情報が、電文の受信時刻と比較して、最新のバージョンのウェブブラウザを示している場合には、クライアント200のユーザは、パーソナルコンピュータの使用について詳しい知識を有するユーザであるものとして、そうしたユーザ向けの情報を表示してもよい。例えば、最新のコンピュータ製品に関する広告を、ポップアップ表示するなどしてもよい。   Moreover, you may change the content of all or one part of the HTTP response produced | generated by the response production part 140 using "User-Agent" and the information of the reception time of a message | telegram among HTTP headers. For example, when the information of the HTTP user agent 220 described in “User-Agent” indicates the latest version of the web browser as compared with the reception time of the message, the user of the client 200 uses the personal computer. Information intended for such users may be displayed as being a user with detailed knowledge of the use of. For example, an advertisement related to the latest computer product may be displayed as a pop-up.

本実施形態により、クライアント側における複雑な手続きが不要で、かつユーザの属性を正確に判別してユーザの属性や、電文の受信間隔に応じてウェブページを表示するウェブサーバが提供される。   According to the present embodiment, there is provided a web server that does not require a complicated procedure on the client side, and that accurately discriminates user attributes and displays web pages according to user attributes and telegram reception intervals.

なお、本実施形態の変形例として、レスポンス作成部140において、クライアント200のアドレス情報は用いず、アドレスに応じたHTTPレスポンスは作成しない場合には、アドレス解析部120を有しないより簡易な構成としてもよい。   As a modification of the present embodiment, when the response creation unit 140 does not use the address information of the client 200 and does not create an HTTP response according to the address, the response creation unit 140 has a simpler configuration without the address analysis unit 120. Also good.

(実施形態3)
次に、本発明の一実施形態に係るウェブページの表示方法を説明する。
(Embodiment 3)
Next, a web page display method according to an embodiment of the present invention will be described.

図9は、本発明の一実施形態に係るウェブページの表示方法の流れを説明するためのフローチャートである。   FIG. 9 is a flowchart for explaining the flow of a web page display method according to an embodiment of the present invention.

図9を参照すると、まず、ウェブサーバ100は、クライアント200から、HTTPリクエストを含む電文を受信する(S110)。   Referring to FIG. 9, first, the web server 100 receives a message including an HTTP request from the client 200 (S110).

ウェブサーバ100は、電文のIPヘッダの送信元アドレスの記述から、クライアント200のアドレスを解析する(S120)。   The web server 100 analyzes the address of the client 200 from the description of the transmission source address in the IP header of the message (S120).

次に、ウェブサーバ100は、電文のHTTPヘッダの記述から、所定の情報を解析する(S130)。   Next, the web server 100 analyzes predetermined information from the description of the HTTP header of the message (S130).

ウェブサーバ100は、クライアント200のアドレスとHTTPヘッダの所定の情報を参照し、クライアント200へと送信するHTTPレスポンスのデータを作成する(S140)。なお、予め作成してあるデータのうちからクライアント200のアドレスとHTTPヘッダの所定の情報に応じたデータを選択してもよい。   The web server 100 refers to the address of the client 200 and predetermined information in the HTTP header, and creates HTTP response data to be transmitted to the client 200 (S140). Note that data corresponding to the address of the client 200 and predetermined information of the HTTP header may be selected from data created in advance.

作成したHTTPレスポンスを含む電文をクライアント200へと送信する(S150)。   A message including the created HTTP response is transmitted to the client 200 (S150).

本実施形態により、クライアント側における複雑な手続きが不要で、かつユーザの属性を正確に判別してユーザの属性に応じたウェブページの表示方法が提供される。   According to the present embodiment, a complicated procedure on the client side is not required, and a method for displaying a web page according to the user attribute by accurately determining the user attribute is provided.

(実施形態4)
次に、本発明の他の実施形態に係るウェブページの表示方法を説明する。
(Embodiment 4)
Next, a web page display method according to another embodiment of the present invention will be described.

図10は、本発明の他の実施形態に係るウェブページの表示方法を説明するためのフローチャートである。   FIG. 10 is a flowchart for explaining a web page display method according to another embodiment of the present invention.

図10を参照すると、まず、ウェブサーバ100は、クライアント200から、HTTPリクエストを含む電文を受信する(S210)。   Referring to FIG. 10, first, the web server 100 receives a message including an HTTP request from the client 200 (S210).

ウェブサーバ100は、電文の受信時刻を確認し記憶する(S220)。   The web server 100 confirms and stores the reception time of the message (S220).

ウェブサーバ100は、電文のHTTPヘッダの記述から、所定の情報を解析する(S230)。   The web server 100 analyzes predetermined information from the description of the HTTP header of the message (S230).

ウェブサーバ100は、電文の受信時刻とHTTPヘッダの所定の情報を参照し、クライアント200へと送信するHTTPレスポンスのデータを作成する(S240)。なお、予め作成してあるデータのうちから受信時刻とHTTPヘッダの所定の情報に応じたデータを選択してもよい。また、図4に係る実施形態の説明において上述したように、ウェブサーバ100の管理者に通知するなど、その他のアクションを行ってもよい。   The web server 100 creates HTTP response data to be transmitted to the client 200 with reference to the message reception time and predetermined information in the HTTP header (S240). It should be noted that data corresponding to the reception time and predetermined information of the HTTP header may be selected from data created in advance. In addition, as described above in the description of the embodiment according to FIG. 4, other actions such as notifying the administrator of the web server 100 may be performed.

作成したHTTPレスポンスを含む電文をクライアント200へと送信する(S250)。   A message including the created HTTP response is transmitted to the client 200 (S250).

本実施形態により、クライアント側における複雑な手続きが不要で、かつユーザの属性を正確に判別してユーザの属性や、電文の受信間隔に応じたウェブページの表示方法が提供される。   According to the present embodiment, a complicated procedure on the client side is not required, and the user attribute is accurately determined, and a web page display method according to the user attribute and the message reception interval is provided.

100 ウェブサーバ、110 電文受信部、120 送信元アドレス解析部、130 HTTPヘッダ解析部、140 レスポンス作成部、150 電文送信部、200 クライアント、210 HTTPユーザエージェント 100 web server, 110 message receiving unit, 120 source address analyzing unit, 130 HTTP header analyzing unit, 140 response creating unit, 150 message transmitting unit, 200 client, 210 HTTP user agent

Claims (2)

クライアントから送信されたHTTPリクエストを含む電文を受信する電文受信部と、
前記HTTPリクエストのHTTPヘッダに設定されたユーザエージェント情報を取得するHTTPヘッダ取得部と、
前記電文の受信時刻を取得する時刻管理部と、
前記ユーザエージェント情報及び前記受信時刻の間隔に応じたコンテンツを前記クライアントにおいて表示するための送信データを当該クライアントへと送信する電文送信部と
を有するウェブサーバ。
A message receiving unit that receives a message including an HTTP request transmitted from the client;
An HTTP header acquisition unit for acquiring user agent information set in an HTTP header of the HTTP request;
A time management unit for acquiring the reception time of the message;
A web server comprising: a message transmission unit that transmits transmission data for displaying the content corresponding to the user agent information and the interval of the reception time on the client to the client.
コンピュータを、
クライアントから送信されたHTTPリクエストを含む電文を受信する電文受信部と、
前記HTTPリクエストのHTTPヘッダに設定されたユーザエージェント情報を取得するHTTPヘッダ取得部と、
前記電文の受信時刻を取得する時刻管理部と、
前記ユーザエージェント情報及び前記受信時刻の間隔に応じたコンテンツを前記クライアントにおいて表示するための送信データを当該クライアントへと送信する電文送信部と
を有するウェブサーバ
として機能させるためのプログラム。
Computer
A message receiving unit that receives a message including an HTTP request transmitted from the client;
An HTTP header acquisition unit for acquiring user agent information set in an HTTP header of the HTTP request;
A time management unit for acquiring the reception time of the message;
The program for functioning as a web server which has the message | telegram transmission part which transmits the transmission data for displaying the content according to the said user agent information and the said reception time interval in the said client to the said client.
JP2013542796A 2011-11-11 2011-11-11 Web server and program Active JP6297331B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2011/076120 WO2013069163A1 (en) 2011-11-11 2011-11-11 Web server and web page display method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017163162A Division JP6383847B2 (en) 2017-08-28 2017-08-28 Web server

Publications (2)

Publication Number Publication Date
JPWO2013069163A1 JPWO2013069163A1 (en) 2015-04-02
JP6297331B2 true JP6297331B2 (en) 2018-03-20

Family

ID=48288902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013542796A Active JP6297331B2 (en) 2011-11-11 2011-11-11 Web server and program

Country Status (2)

Country Link
JP (1) JP6297331B2 (en)
WO (1) WO2013069163A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230247081A1 (en) * 2022-01-31 2023-08-03 Salesforce.Com, Inc. Declarative rendering of hypertext transfer protocol headers

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10149359A (en) * 1996-11-18 1998-06-02 Seiko Epson Corp Automatic translation device for information received via network and its method, and electronic mail processing device and its method
JP3467160B2 (en) * 1996-12-13 2003-11-17 ブラザー工業株式会社 Multilingual communication system, server device, and document transmission method for server device
JP3319731B2 (en) * 1999-12-27 2002-09-03 敬介 山本 Information transmission method
JP2003076627A (en) * 2001-09-06 2003-03-14 Accelia Inc Delivery contents determining system
JP4121382B2 (en) * 2003-01-07 2008-07-23 株式会社リコー Information providing apparatus, information display apparatus, information providing system, and information providing method
JP2006113745A (en) * 2004-10-13 2006-04-27 Serukomu:Kk Internet advertising system
JP2007094830A (en) * 2005-09-29 2007-04-12 Canon Inc Web server device
US20070078714A1 (en) * 2005-09-30 2007-04-05 Yahoo! Inc. Automatically matching advertisements to media files
JP4923269B2 (en) * 2005-12-21 2012-04-25 株式会社Dapリアライズ Web server
US7873710B2 (en) * 2007-02-06 2011-01-18 5O9, Inc. Contextual data communication platform
JP2008257354A (en) * 2007-04-02 2008-10-23 Ricoh Co Ltd Electronic device, method for creating web page, and program for creating web page
JP5140351B2 (en) * 2007-09-04 2013-02-06 京セラドキュメントソリューションズ株式会社 Information processing device
JP5102593B2 (en) * 2007-11-30 2012-12-19 インターナショナル・ビジネス・マシーンズ・コーポレーション Apparatus and method for controlling display of document data
JP2009271763A (en) * 2008-05-08 2009-11-19 Canon Inc Information-providing device, its controlling program, and storage medium

Also Published As

Publication number Publication date
JPWO2013069163A1 (en) 2015-04-02
WO2013069163A1 (en) 2013-05-16

Similar Documents

Publication Publication Date Title
US11165739B1 (en) System and method for managing and displaying data messages
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
US10972585B2 (en) Establishing a trust association
US20140110473A1 (en) Method and system for cross-terminal cloud browsing
US20180343214A1 (en) Information Exchange Method, Client, and Apparatus
WO2017007979A1 (en) Automatically generating service documentation based on actual usage
US20130326087A1 (en) Mapping messages between web services
WO2013143403A1 (en) Method and system for accessing website
CN105207886B (en) Transmission, display methods and the transmission of instant communication message, display device and system
WO2015021873A1 (en) Method, platform server, and system of data pushing
CN107315972A (en) A kind of dynamic desensitization method of big data unstructured document and system
US8856944B2 (en) Obscuring sensitive portions of universal resource locator
US10775751B2 (en) Automatic generation of regular expression based on log line data
JP6383847B2 (en) Web server
EP3393104B1 (en) Requests and responses processing methods, terminal, server and computer-readable media
JP6212240B2 (en) Notification method and notification server for performing push notification by wipe to portable terminal
CN106789413B (en) Method and device for detecting proxy internet surfing
JP6297331B2 (en) Web server and program
Park et al. Study of HTML5 WebSocket for a Multimedia Communication
Bröring et al. Processing real-time sensor data streams for 3D web visualization
CN105224573B (en) A kind of regular data configuration method and device, system
JP7367909B2 (en) First terminal, server device, second terminal, information processing method, and program
JP2016062487A (en) Relay device, data processing system, and program
JP6004400B2 (en) Advertisement distribution system and advertisement distribution method
CN115577200B (en) Page loading method, device, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140418

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20140507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20140507

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150827

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160209

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160330

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160906

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161117

C60 Trial request (containing other claim documents, opposition documents)

Free format text: JAPANESE INTERMEDIATE CODE: C60

Effective date: 20161117

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20161128

C21 Notice of transfer of a case for reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C21

Effective date: 20161129

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20170120

C211 Notice of termination of reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C211

Effective date: 20170124

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20170328

C13 Notice of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: C13

Effective date: 20170718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170828

C13 Notice of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: C13

Effective date: 20170926

C22 Notice of designation (change) of administrative judge

Free format text: JAPANESE INTERMEDIATE CODE: C22

Effective date: 20171114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171115

C23 Notice of termination of proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C23

Effective date: 20171219

C03 Trial/appeal decision taken

Free format text: JAPANESE INTERMEDIATE CODE: C03

Effective date: 20180130

C30A Notification sent

Free format text: JAPANESE INTERMEDIATE CODE: C3012

Effective date: 20180130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180221

R150 Certificate of patent or registration of utility model

Ref document number: 6297331

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S201 Request for registration of exclusive licence

Free format text: JAPANESE INTERMEDIATE CODE: R314201

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250