CN102882971B - Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) - Google Patents
Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) Download PDFInfo
- Publication number
- CN102882971B CN102882971B CN201210372441.5A CN201210372441A CN102882971B CN 102882971 B CN102882971 B CN 102882971B CN 201210372441 A CN201210372441 A CN 201210372441A CN 102882971 B CN102882971 B CN 102882971B
- Authority
- CN
- China
- Prior art keywords
- information
- http
- pushing
- request message
- url
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a method and a system for barrier-free information push on the basis of a HTTP (hyper text transport protocol). The method includes S1, acquiring a GET request message of the HTTP in a network; S2, judging whether information push is completed or not according to a source address of the GET request message, and entering a step S3 if the information push is not completed; S3, judging whether the content of pushed information is accessed or not according to parameters in a URL (uniform resource locator) of the GET request message, and entering a step S4 if the content of the pushed information is not accessed; S4, constructing a URL containing the information required to be pushed and redirection mark parameters according to information configured by a user; S5, forging a redirection reply of the HTTP and simultaneously resetting TCP (transmission control protocol) connection; S6, reconstructing the URL constructed in the step S4, and deleting the redirection mark parameters; S7, forging a redirection reply of the HTTP and simultaneously resetting TCP connection; S8, releasing the GET request message; S9, completing periodic information push; and S10, completing fixed-point information push. By the method and the system, the information required to be pushed can be assuredly pushed to the user for online browsing, and accordingly barrier-free information push is realized.
Description
[technical field]
The present invention relates to a kind of accessible information-pushing method based on HTTP and system, belong to information pushing field.
[background technology]
Existing information advancing technique, all adopts HTTP302 to be redirected.User reach the standard grade (first time reaches the standard grade, or the specific time there is no action after be forced to roll off the production line after reach the standard grade again) time, carry out the propelling movement of appointed information.
But, be redirected owing to adopting HTTP302, accurately can not distinguish the request of HTTP application program or browser transmission, so just cannot guarantee that user sees the information needing to push, specific information cannot be pushed to online user in the specific time, such as, can not accomplish to carry out the information pushings such as real-time notice to online user.Meanwhile, also there is the single problem that cannot push different information at each time point of pushed information in existing information advancing technique.
[summary of the invention]
In order to solve the problem, the object of this invention is to provide a kind of accessible information-pushing method based on HTTP.
Another object of the present invention is to provide a kind of accessible information transmission system based on HTTP.
Wherein, the accessible information-pushing method based on HTTP of an embodiment of the present invention comprises the following steps:
The GET request message of HTTP in S1, acquisition network;
S2, source address according to described GET request message, judged whether information pushing, if so, then entered S8 step, if not, then entered S3 step;
S3, according to the parameter in the URL of described GET request message, judge whether to access the information content pushed, if so, then mark sends the source address of this request and completes information pushing, and enters S6 step, if not, then enters S4 step;
S4, according to user configured information, structure comprises information and the URL of redirected flag parameters of needs propelling movement;
S5, forgery HTTP redirection reply, and reset TCP simultaneously and connect;
The URL that S6, reconstruct S4 step construct, deletes and is redirected flag parameters;
S7, forgery HTTP redirection reply, and reset TCP simultaneously and connect;
S8, described GET request message of letting pass;
S9, periodical information push;
S10, complete setpoint information push.
As a further improvement on the present invention, being redirected the answer code replied in described S5 step is 200, replies the URL'</script> that content constructs for <script>self.location.href=' IV.
As a further improvement on the present invention, described S9 specifically comprises:
By the cycle time that user sets, calculate the next time t needing information pushing, when system time reaches t, the flag clear completing information pushing of institute's source address.
As a further improvement on the present invention, described S10 specifically comprises:
When system time arrives the time point of user's setting, the flag clear completing information pushing of institute's source address.
Correspondingly, the accessible information transmission system based on HTTP of an embodiment of the present invention comprises:
Acquiring unit, for obtaining the GET request message of HTTP in network;
Judging unit, for the source address according to described GET request message, has judged whether information pushing, and for according to the parameter in the URL of described GET request message, judge whether to access the information content pushed, the source address of if so, then this request of mark transmission completes information pushing;
Structural unit, for according to user configured information, constructs and comprises the information of needs propelling movement and the URL of redirected flag parameters;
HTTP unit, replying for forging HTTP redirection, resetting TCP simultaneously and connecting;
Reconfiguration unit, for reconstructing the URL that structural unit constructs, deleting and being redirected flag parameters;
Clearance unit, for described GET request message of letting pass;
Information pushing unit, pushes for periodical information, and completes setpoint information propelling movement.
As a further improvement on the present invention, being redirected the answer code replied in described HTTP unit is 200, replies the URL'</script> that content constructs for <script>self.location.href=' IV.
As a further improvement on the present invention, described information pushing unit specifically for:
By the cycle time that user sets, calculate the next time t needing information pushing, when system time reaches t, the flag clear completing information pushing of institute's source address.
As a further improvement on the present invention, described information pushing unit specifically for:
When system time arrives the time point of user's setting, the flag clear completing information pushing of institute's source address.
Compared to prior art, information pushing of the present invention can guarantee that online user browses the information needing to push, thus accomplishes accessible; Periodically can push the information of setting simultaneously, also can push the information of specifying at specific time point, and energy real time propelling movement is to online user, the flexibility of the information advancing technique provided greatly.
[accompanying drawing explanation]
Fig. 1 is the flow chart of the accessible information-pushing method based on HTTP of one embodiment of the invention;
Fig. 2 is the module map of the accessible information transmission system based on HTTP of one embodiment of the invention.
[embodiment]
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, based on the accessible information-pushing method of HTTP in an embodiment of the present invention, comprise the following steps:
S1, by serial network detecting devices, obtain the GET request message of HTTP in network;
S2, source address according to described GET request message, judged whether information pushing, if so, then entered S8 step, if not, then entered S3 step;
S3, according to the parameter in the URL of described GET request message, judge whether to access the information content pushed, if so, then mark sends the source address of this request and completes information pushing, and enters S6 step, if not, then enters S4 step;
S4, according to user configured information, structure comprises information and the URL of redirected flag parameters of needs propelling movement;
S5, forgery HTTP redirection reply; Preferably, replying code is 200, replies the URL'</script> that content constructs for <script>self.location.href=' IV, resets TCP simultaneously and connects.
The URL that S6, reconstruct S4 step construct, deletes and is redirected flag parameters.Namely the information that needs push only is comprised;
S7, forgery HTTP redirection reply; Preferably, replying code is 200, replies the URL'</script> that content constructs for <script>self.location.href=' VI.Reset TCP to connect simultaneously.
S8, described GET request message of letting pass, the normal accesses network of user;
S9, execution cycle property information pushing.Preferably, the cycle time set by user, the next time t needing information pushing is calculated.When system time reaches t, the flag clear completing information pushing of institute's source address.So just can the cycle propelling movement user setting information.
S10, complete setpoint information push.Preferably, when system time arrives the time point of user's setting, the flag clear completing information pushing of institute's source address.So just can push specific information in the specific time.
As shown in Figure 2, based on the accessible information transmission system of HTTP in an embodiment of the present invention, comprising:
Acquiring unit, for by serial network detecting devices, obtains the GET request message of HTTP in network;
Judging unit, for the source address according to described GET request message, has judged whether information pushing, and for according to the parameter in the URL of described GET request message, judge whether to access the information content pushed, the source address of if so, then this request of mark transmission completes information pushing;
Structural unit, for according to user configured information, constructs and comprises the information of needs propelling movement and the URL of redirected flag parameters;
HTTP unit, replies for forging HTTP redirection; Preferably, replying code is 200, replies the URL'</script> that content constructs for <script>self.location.href=' IV, resets TCP simultaneously and connects.
Reconfiguration unit, for reconstructing the URL that structural unit constructs, deleting and being redirected flag parameters.Namely the information that needs push only is comprised;
Clearance unit, for described GET request message of letting pass, the normal accesses network of user;
Information pushing unit is used for execution cycle property information pushing.Preferably, the cycle time set by user, the next time t needing information pushing is calculated.When system time reaches t, the flag clear completing information pushing of institute's source address.So just can the cycle propelling movement user setting information.
Described information pushing unit also pushes for completing setpoint information.Preferably, when system time arrives the time point of user's setting, the flag clear completing information pushing of institute's source address.So just can push specific information in the specific time.
In sum, information pushing of the present invention can guarantee that online user browses the information needing to push, thus accomplishes accessible; Periodically can push the information of setting simultaneously, also can push the information of specifying at specific time point, and energy real time propelling movement is to online user, the flexibility of the information advancing technique provided greatly.
Be to be understood that, although this specification is described according to execution mode, but not each execution mode only comprises an independently technical scheme, this narrating mode of specification is only for clarity sake, those skilled in the art should by specification integrally, technical scheme in each execution mode also through appropriately combined, can form other execution modes that it will be appreciated by those skilled in the art that.
A series of detailed description listed is above only illustrating for feasibility execution mode of the present invention; they are also not used to limit the scope of the invention, all do not depart from the skill of the present invention equivalent implementations done of spirit or change all should be included within protection scope of the present invention.
Claims (4)
1. based on an accessible information-pushing method of HTTP, it is characterized in that, described method comprises:
The GET request message of HTTP in S1, acquisition network;
S2, source address according to described GET request message, judged whether information pushing, if so, then entered S8 step, if not, then entered S3 step;
S3, according to the parameter in the URL of described GET request message, judge whether to access the information content pushed, if so, then mark sends the source address of this request and completes information pushing, and enters S6 step, if not, then enters S4 step;
S4, according to user configured information, structure comprises information and the URL of redirected flag parameters of needs propelling movement;
S5, forgery HTTP redirection reply, and reset TCP simultaneously and connect;
The URL that S6, reconstruct S4 step construct, deletes and is redirected flag parameters;
S7, forgery HTTP redirection reply, and reset TCP simultaneously and connect;
S8, described GET request message of letting pass;
S9, execution cycle property information pushing;
S10, complete setpoint information push.
2. the accessible information-pushing method based on HTTP according to claim 1, it is characterized in that, being redirected the answer code replied in described S5 step is 200, replies the URL'</script> that content constructs for <script>self.location.href=' IV.
3. the accessible information-pushing method based on HTTP according to claim 1, it is characterized in that, described S9 specifically comprises:
By the cycle time that user sets, calculate the next time t needing information pushing, when system time reaches t, the flag clear completing information pushing of institute's source address.
4. the accessible information-pushing method based on HTTP according to claim 1, it is characterized in that, described S10 specifically comprises:
When system time arrives the time point of user's setting, the flag clear completing information pushing of institute's source address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210372441.5A CN102882971B (en) | 2012-09-29 | 2012-09-29 | Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210372441.5A CN102882971B (en) | 2012-09-29 | 2012-09-29 | Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102882971A CN102882971A (en) | 2013-01-16 |
CN102882971B true CN102882971B (en) | 2015-07-15 |
Family
ID=47484113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210372441.5A Active CN102882971B (en) | 2012-09-29 | 2012-09-29 | Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102882971B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450771A (en) * | 2015-12-16 | 2016-03-30 | 北京浩瀚深度信息技术股份有限公司 | Information push and information push optimization methods, servers and systems |
CN108259588B (en) * | 2018-01-09 | 2021-08-31 | 上海创图网络科技股份有限公司 | Culture cloud platform pushing method and device based on big data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127782A (en) * | 2007-07-19 | 2008-02-20 | 中兴通讯股份有限公司 | Method for forceful implementation of portal service |
CN101902495A (en) * | 2009-12-17 | 2010-12-01 | 亿赞普(北京)科技有限公司 | Homepage pushing method capable of penetrating through private network, gateway and proxy |
CN101902450A (en) * | 2009-11-13 | 2010-12-01 | 亿赞普(北京)科技有限公司 | Network for realizing page push and control, page push method and page control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060031394A1 (en) * | 2004-04-20 | 2006-02-09 | Tazuma Stanley K | Apparatus and methods for transparent handling of browser proxy configurations in a network gateway device |
-
2012
- 2012-09-29 CN CN201210372441.5A patent/CN102882971B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127782A (en) * | 2007-07-19 | 2008-02-20 | 中兴通讯股份有限公司 | Method for forceful implementation of portal service |
CN101902450A (en) * | 2009-11-13 | 2010-12-01 | 亿赞普(北京)科技有限公司 | Network for realizing page push and control, page push method and page control method |
CN101902495A (en) * | 2009-12-17 | 2010-12-01 | 亿赞普(北京)科技有限公司 | Homepage pushing method capable of penetrating through private network, gateway and proxy |
Also Published As
Publication number | Publication date |
---|---|
CN102882971A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915398A (en) | Method and device for webpage point burying | |
CN103905497A (en) | Method, device and application platform for realizing login of third-party application service website | |
CN101409937B (en) | Method and apparatus for converting script into data format supported by target system | |
CN103237048A (en) | Real-time warning system and real-time warning method of B/S framework in electrical power system | |
CN102394880A (en) | Method and device for processing jump response in content delivery network | |
CN104581753A (en) | A method, device and terminal for calculating a webpage loading time delay | |
CN103391511A (en) | Content sharing method based on geographic position | |
Abdurohman et al. | Mobile tracking system using OpenMTC platform based on event driven method | |
CN105512904A (en) | Advertisement push method | |
CN102882971B (en) | Method and system for barrier-free information push on basis of HTTP (hyper text transport protocol) | |
CN103731398A (en) | Data access method, system and device based on CDN | |
CN104298780A (en) | Method and system for pre-obtaining browser webpage information | |
CN104462242B (en) | Webpage capacity of returns statistical method and device | |
CN103338278A (en) | Accelerating method and device for web page browsing | |
CN103605770A (en) | Method and server for generating web page templates | |
CN104035935A (en) | Webpage content push method and system for browser bookmark uniform resource locator (URL) | |
CN102609864A (en) | Method, device, server and system for releasing advertisements | |
CN103377231A (en) | Data analysis method, device and system | |
Anton-Haro et al. | Introduction to machine-to-machine (M2M) communications | |
CN104834594A (en) | Method and apparatus for testing web system | |
CN104580552A (en) | Implementing method of resolution redirection of error domain name server in home gateway | |
Pranoto et al. | Comparison analysis of data sending performance using the cayenne and thingspeak IoT platform | |
CN102685155B (en) | The method that content transmits, content delivering server and content transmit proxy server | |
CN104462235A (en) | Internet of Things general event service mechanism based on Restful Web Service | |
CN103034493B (en) | A kind of management method of timer Node and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 301-302, 3rd Floor, Tiancheng Information Building, No. 88 South Tiancheng Road, High Speed Rail New City, Xiangcheng District, Suzhou City, Jiangsu Province, 215133 Patentee after: SUZHOU MAXNET NETWORK SAFETY TECHNOLOGY Co.,Ltd. Address before: 215021 International Science and Technology Park Phase III 8B, No. 1355 Jinjihu Avenue, Industrial Park, Suzhou City, Jiangsu Province Patentee before: SUZHOU MAXNET NETWORK SAFETY TECHNOLOGY Co.,Ltd. |