Q_ENTRY* qCgiRequestParseQueries ( Q_ENTRY request,
const char *  method 
)

Parse GET/POST queries into name and value fairs then store into the Q_ENTRY structure.

Parameters:
request if request is a NULL pointer, the function allocates, initializes, and returns a new object. otherwise reuse(append at) Q_ENTRY* handle.
method "GET" or "POST". NULL can be used for parse both GET/POST queries.
Returns:
Q_ENTRY* handle if successful, NULL if there was insufficient memory to allocate a new object.
   Q_ENTRY *getpost = qCgiRequestParseQueries(NULL, NULL);
   printf("%s\n", qEntryGetStr(getpost, "name"));

   // if you would like to parse only POST queries.
   Q_ENTRY *post = qCgiRequestParseQueries(NULL, "POST");
   printf("%s\n", qEntryGetStr(post, "name"));

Definition at line 268 of file qCgiRequest.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1