Exemplo n.º 1
0
static int __httpd_parse_all_tags(char *inbuf, const char *tag,
				  char *val, unsigned val_len)

{
  short found = 0;
  char *ptr;
  
  ptr = inbuf;
  while (1) {
    ptr = httpd_parse_msgbody(ptr, tag, val, val_len, &found);
    if (ptr < 0) {
      httpd_d("Failed to parse request");
      return -kInProgressErr;
    }
    if (found)
      return kNoErr;
    
    if (ptr == NULL)
      break;
  }
  
  return -kInProgressErr;
}
Exemplo n.º 2
0
static int __httpd_parse_all_tags(char *inbuf, const char *tag,
				  char *val, unsigned val_len)

{
	short found = 0;
	char *ptr;

	ptr = inbuf;
	while (1) {
		ptr = httpd_parse_msgbody(ptr, tag, val, val_len, &found);
		if (ptr < 0) {
			httpd_e("Failed to parse request");
			return -WM_FAIL;
		}
		if (found)
			return WM_SUCCESS;

		if (ptr == NULL)
			break;
	}

	return -WM_E_NOENT;
}