![]() |
C library for SOAP (Simple Object Access Protocol) |
| #define BOUNDARY_LENGTH 18 |
| #define MAX_FILE_BUFFER_SIZE 4256 |
| #define MAX_HEADER_SIZE 4256 |
| #define NHTTP_ARG_CA "-NHTTPCA" |
| #define NHTTP_ARG_CERT "-NHTTPcert" |
Common commandline arguments for client and server.
| #define NHTTP_ARG_CERTPASS "-NHTTPcertpass" |
| #define REQUEST_MAX_PATH_SIZE 1024 |
| #define RESPONSE_MAX_DESC_SIZE 1024 |
| #define SAVE_STR | ( | str | ) | ((str==0)?("(null)"):(str)) |
| typedef struct _content_type content_type_t |
Object representation of the content-type field in a HTTP header:
Example:
Content-Type: text/xml; key="value" key2="value2' ...
*
hpairnode_t represents a pair (key, value) pair. This is also a linked list.
| typedef enum _hreq_method hreq_method_t |
The set of common methods for HTTP/1.1 is defined below. Although this set can be expanded, additional methods cannot be assumed to share the same semantics for separately extended clients and servers.
The Host request-header field MUST accompany all HTTP/1.1 requests.
| typedef enum _http_version http_version_t |
Indicates the version of the used HTTP protocol.
| enum _hreq_method |
The set of common methods for HTTP/1.1 is defined below. Although this set can be expanded, additional methods cannot be assumed to share the same semantics for separately extended clients and servers.
The Host request-header field MUST accompany all HTTP/1.1 requests.
| enum _http_version |
| void attachments_add_part | ( | struct attachments_t * | attachments, | |
| struct part_t * | part | |||
| ) |
| void attachments_free | ( | struct attachments_t * | message | ) |
| struct attachments_t* attachments_new | ( | void | ) | [read] |
| void content_type_free | ( | content_type_t * | ct | ) |
Frees the given content_type_t object
| content_type_t* content_type_new | ( | const char * | content_type_str | ) |
Parses the given string and creates a new ccontent_type_t object.
| content_type_str | the string representation of the content-type field in a HTTP header. |
This function will create a new pair and fills the (key,value) fields of a given pair. Note that the 'next' field will not be copied.
| src | the source pair object to copy. |
Clones the hole linked list.
| src | the source pair object to copy from |
| void hpairnode_dump | ( | const hpair_t * | pair | ) |
Dumps the pair specified.
| void hpairnode_dump_deep | ( | const hpair_t * | pairs | ) |
| void hpairnode_free | ( | hpair_t * | pair | ) |
Frees a given pair.
| pair | the pair to free |
| void hpairnode_free_deep | ( | hpair_t * | pair | ) |
Makes a deep free operation. All pairnodes, beginning with the given pari, in the linked list will be destroyed.
| pair | the pair to start to free the linked list |
| char* hpairnode_get | ( | hpair_t * | pair, | |
| const char * | key | |||
| ) |
Returns the (key,value) pair, which key is the given 'key'.
| pair | the first pair to start to search from. | |
| key | key to find the in the pair. |
the value (do not free this string) or NULL if no pair was found with the key 'key'.
| char* hpairnode_get_ignore_case | ( | hpair_t * | pair, | |
| const char * | key | |||
| ) |
Returns the (key,value) pair, which key is the given 'key'. The case will be ignored while comparing the key strings.
| pair | the first pair to start to search from. | |
| key | key to find the in the pair. |
the value (do not free this string) or NULL if no pair was found with the key 'key'.
Creates a new pair with the given parameters. Both strings key and value will be cloned while creating the pair.
| key | the key of the (key,value) pair | |
| value | the value of the (key,value) pair | |
| next | next pair node in the linked list |
Creates a new pair from a given string. This function will split 'str' with the found first delimiter 'delim'. The 'value' field of the newly created pair will have the value "", if no delimiter was found/ Whitespaces (' ') will be removed from the beginnig of the parsed value.
| str | A string to parse | |
| delim | a delimiter to use while splitting into key,value | |
| next | next pair node in the linked list |
| void part_free | ( | struct part_t * | part | ) |
| struct part_t* part_new | ( | const char * | id, | |
| const char * | filename, | |||
| const char * | content_type, | |||
| const char * | transfer_encoding, | |||
| struct part_t * | next | |||
| ) | [read] |