# US 2012/0254362 A1 · System and method to transport htpp over xmpp

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0254362 A1
- Document ID: US20120254362A1
- Status: Published application
- Kind: A1
- Application number: 13/239,811
- Filed: 2011-09-22
- Published: 2012-10-04
- Earliest claimed: 2011-04-04
- Assignees: Avaya Inc.
- Inventors: Li Li; Wu Chou
- Web page: https://patentgrep.com/patent/US20120254362A1

## CPC

- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04W 4/025: {using location based information parameters}
- H04W 4/12: Messaging; Mailboxes; Announcements
- H04W 12/03: Protecting confidentiality, e.g. by encryption
- H04L 63/0407: {wherein the identity of one or more communicating identities is hidden (cryptographic mechanisms or cryptographic arrangements for anonymous credentials or for identity based cryptographic systems H04L9/00)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Method to transport HTPP over XMPP, including: forming a first two-level URI template to identify web resources accessible by use of HTTP in an XMPP network, wherein a first level is XMPP-formatted and a second level is HTTP-formatted; binding HTTP to XMPP <message> and <iq> stanzas; transmitting the HTTP messages in those stanzas; receiving a HTTP messages in those stanzas; and a XMPP mechanism to discover if an XMPP entity supports transporting HTTP over XMPP.

## Claims

### Claim 1

A method to transport HTPP over XMPP, comprising:
forming a first two-level URI template to identify web resources accessible by use of HTTP in an XMPP network, wherein a first level is XMPP-formatted and a second level is HTTP-formatted;
binding HTTP to XMPP <message> and <iq> stanzas;
transmitting the first<message> and <iq> stanzas;
receiving a HTTP message in the <message> and <iq> stanzas; and
discovering, by use of an XMPP mechanism, whether an XMPP entity supports the transport of HTTP over XMPP.

### Claim 2 (depends on 1)

The method of claim 1, wherein the <message> and <iq> stanzas are sent to an HTTP/XMPP gateway.

### Claim 3 (depends on 1)

The method of claim 1, wherein transmitting the <message> and <iq> stanzas is by use of an XMPP process library.

### Claim 4 (depends on 1)

The method of claim 1, wherein discovering whether an XMPP entity supports the transport of HTTP over XMPP comprises:
extracting an XMPP JID from the second two-level URI;
assigning the XMPP JID to a HTTP Host header field;
extracting a HTTP Request-URI field from a portion of the second two-level URI following a predetermined delimiter;
activating an XMPP connection;
transmitting an XMPP IQ stanza to a destination indicated by the JID, wherein the XMPP IQ stanza comprises a HTTP GET message to a URI location indicated by the HTTP Request-URI;
receiving a result IQ stanza from the destination indicated by the JID; and
extracting a response from a resulting IQ stanza.

### Claim 5 (depends on 4)

The method of claim 4, wherein activating an XMPP connection comprises selecting a previously established XMPP connection.

### Claim 6 (depends on 4)

The method of claim 4, wherein activating an XMPP connection comprises prompting a user to login to an XMPP server.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
transmitting an XMPP service discovery stanza to a destination, wherein the XMPP service discovery stanza comprises at least one of a query of supported protocols and a query of an entry point URI.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
receiving a response to the XMPP service discovery stanza; and
invoking REST services at the entry point URI.

### Claim 9 (depends on 1)

The method of claim 1, wherein binding HTTP to XMPP comprises:
binding HTTP GET to an XMPP <iq type=“get”> stanza;
binding HTTP PUT, POST and DELETE to an XMPP <iq type=“set”> stanza;
binding HTTP response codes 1xx-3xx to an XMPP <iq type=“result”> stanza; and
binding HTTP response codes 4xx-5xx to an XMPP <iq type=“error”> stanza.

### Claim 10 (depends on 1)

The method of claim 1, wherein binding HTTP to XMPP comprises:
binding HTTP GET to an XMPP <message type=“chat|groupchat|normal”> stanza;
binding HTTP PUT, POST and DELETE to an XMPP <message type=“chat|groupchat|normal”> stanza;
binding HTTP response codes 1xx-3xx to an XMPP <message type=“chat|groupchat|normal”> stanza; and
binding HTTP response codes 4xx-5xx to an XMPP <message type=“error”> stanza.

### Claim 11

A system to transport HTPP over XMPP, comprising:
a template formation module configured to form a first two-level URI template to identify web resources accessible by use of HTTP in an XMPP network, wherein a first level is XMPP-formatted and a second level is HTTP-formatted;
a binding module configured to bind HTTP to XMPP in the first two-level URI template;
a transmitter configured to transmit the first two-level URI template to a destination;
a receiver configured to receive a second two-level URI template from the destination; and
a dereferencing module configured to dereference the second two-level URI.

### Claim 12 (depends on 11)

The system of claim 11, wherein the destination comprises an HTTP/XMPP gateway.

### Claim 13 (depends on 11)

The system of claim 11, wherein the transmitter transmits the first two-level URI template by use of an XMPP process library.

### Claim 14 (depends on 11)

The system of claim 11, wherein the dereferencing module comprises:
an XMPP JID extraction module configured to extract an XMPP JID from the second two-level URI;
an assignment module configured to assign the XMPP JID to a HTTP Host header field;
an extraction module configured to extract an HTTP Request-URI field from a portion of the second two-level URI following a predetermined delimiter;
an activation module configured to activate an XMPP connection;
a transmitted configured to transmit an XMPP IQ stanza to a destination indicated by the JID, wherein the XMPP IQ stanza comprises a HTTP GET message to a URI location indicated by the HTTP Request-URI;
a receiver configured to receive a result IQ stanza from the destination indicated by the JID; and
an extraction module configured to extract a response from a resulting IQ stanza.

### Claim 15 (depends on 14)

The system of claim 14, wherein the activation module is further configured to activate the XMPP connection by selecting a previously established XMPP connection.

### Claim 16 (depends on 14)

The system of claim 14, wherein the activation module is further configured to activate the XMPP connection by prompting a user to login to an XMPP server.

### Claim 17 (depends on 11)

The system of claim 11, further comprising:
a transmitter configured to transmit an XMPP service discovery stanza to the destination, wherein the XMPP service discovery stanza comprises at least one of a query of supported protocols and a query of an entry point URI.

### Claim 18 (depends on 17)

The system of claim 17, further comprising:
a receiver configured to receive a response to the XMPP service discovery stanza; and
a processor configured to invoke REST services at the entry point URI.

### Claim 19 (depends on 11)

The system of claim 11, further comprising:
a processor;
a memory coupled to the processor, the memory configured to store software, wherein the software when performed by the processor is configured to perform the steps of:
binding HTTP GET to an XMPP <iq type=“get”> stanza;
binding HTTP PUT, POST and DELETE to an XMPP <iq type=“set”> stanza;
binding HTTP response codes 1xx-3xx to an XMPP <iq type=“result”> stanza; and
binding HTTP response codes 4xx-5xx to an XMPP <iq type=“error”> stanza.

### Claim 20 (depends on 11)

The system of claim 11, further comprising:
a processor;
a memory coupled to the processor, the memory configured to store software, wherein the software when performed by the processor is configured to perform the steps of:
binding HTTP GET to an XMPP <message type=“chat|groupchat|normal”> stanza;
binding HTTP PUT, POST and DELETE to an XMPP <message type=“chat|groupchat|normal”> stanza;
binding HTTP response codes 1xx-3xx to an XMPP <message type=“chat|groupchat|normal”> stanza; and
binding HTTP response codes 4xx-5xx to an XMPP <message type=“error”> stanza.
