uri.h
Estructura xmlURI
Una referencia URI analizada. Se trata de una estructura que contiene los distintos campos descritos en el RFC 2396, pero separados para su posterior procesamiento.
Nota: query es un campo obsoleto que está incorrectamente desescapado. query_raw tiene prioridad sobre query si el primero está establecido.
Sintaxis
/**
* xmlURI:
*
* A parsed URI reference. This is a struct containing the various fields
* as described in RFC 2396 but separated for further processing.
*
* Note: query is a deprecated field which is incorrectly unescaped.
* query_raw takes precedence over query if the former is set.
* See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
*/
typedef struct _xmlURI xmlURI;
typedef xmlURI *xmlURIPtr;
struct _xmlURI {
char *scheme; /* the URI scheme */
char *opaque; /* opaque part */
char *authority; /* the authority part */
char *server; /* the server part */
char *user; /* the user part */
int port; /* the port number */
char *path; /* the path string */
char *query; /* the query string (deprecated - use with caution) */
char *fragment; /* the fragment identifier */
int cleanup; /* parsing potentially unclean URI */
char *query_raw; /* the query string (as it appears in the URI) */
};
Miembros
- scheme
- El esquema URI.
- opaque
- Parte opaca.
- authority
- La parte de autoridad.
- server
- La parte del servidor.
- user
- La parte del usuario.
- port
- El número de puerto.
- path
- La cadena de ruta.
- query
- La cadena de consulta. (obsoleto - utilizar con precaución).
- fragment
- El identificador de fragmento.
- cleanup
- Análisis de URI potencialmente sucia.
- query_raw
- La cadena de consulta (tal como aparece en la URI).