Method and system for providing message containing website

A web page address and message technology, applied in the Internet field, can solve the problems of messages exceeding the length limit, insufficient space for user input text, occupying space for message length, etc.

Inactive Publication Date: 2012-04-04
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since there is no limit to the length of the URL, most of the commonly used URLs are between 37-87 characters in length. When a longer URL is added to a message with a limited len...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for providing message containing website
  • Method and system for providing message containing website
  • Method and system for providing message containing website

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 It is a structural diagram of a system for providing a message including a website address according to an embodiment of the present invention. The system mainly includes: a business processing module 101 , a query module 102 and a client 103 . The business processing module is mainly used to execute business logic, provide messages to the client, process various requests sent by the client, and obtain website information from the query module. The query module 102 is mainly used for converting, storing and querying the website. The above modules are only obtained by logical division according to the functions of the system. In actual implementation, each module may be implemented by the same physical device, or may be distributed in multiple physical entities.

[0034] join figure 2 , figure 2 It is a flowchart of a method for providing a message including a website address according to an embodiment of the present invention. This embodiment is applicab...

Embodiment 2

[0071] join Figure 4 , Figure 4 It is a flowchart of a method for providing a message including a website address according to an embodiment of the present invention. This embodiment is suitable for application scenarios such as microblogs and user signatures, and is especially suitable for application scenarios in which the system publishes broadcast or multicast messages with limited length.

[0072] The flow of the method for providing a message including a website address in this embodiment mainly includes the following steps.

[0073] Step 401: Replace the first URL included in the message with a second URL, and save the correspondence between the first URL and the second URL. The message may be a message input by a user, or a message to be published generated by the system. The length of the second website is smaller than the length of the first website.

[0074] Step 402, providing the message including the second URL.

[0075] Step 403: Receive a request includi...

Embodiment 3

[0087] Figure 5 It is a structural diagram of a system for providing a message including a website address according to an embodiment of the present invention. The system may include the following devices.

[0088] The interface server 501 is used to receive the message content and request input by the user sent by the client 503, and the request may be a message submission request, a website query request, a website access request, etc.; the message content and the website query request are provided to the website conversion server. 502 ; provide the website access request to the HTTP server 504 ;

[0089] The web address conversion server 502 is used to replace the first web address in the message sent by the client 503 with the second web address, wherein the storage server 506 can be queried first whether the first web address has been saved, and if so, then the storage The server 506 obtains the second URL corresponding to the first URL; if not, generates the second UR...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and system for providing a message containing a website. The method comprises the following steps: detecting whether the message content of a message input by a user contains a first website or not, if the message content contains the first website, calculating the message length by utilizing a first length value as the length of the first website; if the message length obtained through calculation is smaller than a preset message length, allowing the user to continue to add the message content; replacing the first website contained in the message by utilizing a second website, and storing the corresponding relation between the first website and the second website; wherein the length of the second website is smaller than or equal to the first length value; and providing the message containing the second website. According to the technical scheme of the invention, the website in the message is replaced by a shorter website, so that the website occupies the length of the message as little as possible, thus overlong message can not be caused when a longer website is inserted into the message.

Description

technical field [0001] Embodiments of the present invention relate to the field of Internet technologies, and in particular, to a method and system for providing messages using a short webpage address. Background technique [0002] A Uniform Resource Locator (URL, Uniform Resource Locator), also known as a web page address, is an identification method used to completely describe the addresses of web pages and other resources on the Internet. [0003] The Internet communication protocol RFC 2616 "Hypertext Transfer Protocol - HTTP / 1.1" does not make any requirements for the length of the URL. In practice, the URL length limit is determined by two aspects: client browser requirements and server-side settings. For example, Microsoft's Internet Explorer (Microsoft Internet Explorer) limits the URL length to 2083 bytes, while the actual maximum length that can be used is 2048 bytes. [0004] Currently, there are many services and applications on the Internet that provide messag...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F17/30876G06F16/955
Inventor 张丽
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products