RSA Security logo

RSA BSAFE Cert-C
API Reference

HTTP_REQUEST_INFO Struct Reference

Holds information associated with an HTTP-transported request.

Additional metadata headers may accompany the requests, especially if an HTTP POST operation is performed.

Data Fields
method The type of HTTP request method on the specified URL. Possible values are HTTP_REQUEST_METHOD_GET or HTTP_REQUEST_METHOD_POST.
data An ITEM structure that contains the data to send to the server. This data is used only if method is HTTP_REQUEST_METHOD_POST.
headers A LIST_OBJ that contains HTTP request headers associated with the request. The LIST_OBJ contains ITEMs of character strings. Do not include string-terminated NUL characters in the ITEM's len count.

These headers can be optional, depending on the receiving application; for example, the headers are optional with an HTTP_REQUEST_METHOD_GET request. With an HTTP_REQUEST_METHOD_POST request, a "Content-Type: <my-content-type-here>" indication must be provided. A "Content-Length:" value is provided automatically by calling C_SendHTTPRequest().

Note: The application must destroy the LIST_OBJ to avoid memory leaks.

#include <httpapi.h>

00072 typedef struct {
00073   int      method;  /* HTTP_REQUEST_METHOD_GET or HTTP_REQUEST_METHOD_POST  */
00074   ITEM     data;    /* request body                        */
00075   LIST_OBJ headers; /* HTTP request headers                */
00076 } HTTP_REQUEST_INFO;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference