Q_ENTRY* qCgiRequestParse ( Q_ENTRY request  ) 

Parse web request(COOKIE/GET/POST) query 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. but if you called qCgiParseRequestOption() to set options, pass it's pointer.
Returns:
Q_ENTRY* handle if successful, NULL if there was insufficient memory to allocate a new object.
   Q_ENTRY *req = qCgiRequestParse(NULL);
   printf("%s\n", qEntryGetStr(req, "name"));

Note:
The parsing sequence is (1)COOKIE, (2)GET (3)POST. Thus if same query names (which are sent by different method) exist, qGetValue() will return the value sent by GET method.

Definition at line 237 of file qCgiRequest.c.


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