library/src/decoders/HTML/BP-HTMLDecoder.cc
// Returns a form method based around an input string
Returns a form method based around an input string
Returns a form method based around an input string
BP_HTML_FORM_METHOD HTMLGetFormMethodFromString(char *methodStr){
	if(!methodStr)
		return BP_HTML_FORM_METHOD_UNSET;
	if(BP_strncasecmp(methodStr, "post", 4) == 0)
	{
		return BP_HTML_FORM_METHOD_POST;
	}
	if(BP_strncasecmp(methodStr, "get", 3) == 0)
	{
		return BP_HTML_FORM_METHOD_GET;
	}
	return BP_HTML_FORM_METHOD_GET;
}
BP_HTML_FORM_METHOD HTMLGetFormMethodFromString ( char * methodStr ) { if ( ! methodStr ) return BP_HTML_FORM_METHOD_UNSET ; if ( BP_strncasecmp ( methodStr , " " , 4 ) == 0 ) { return BP_HTML_FORM_METHOD_POST ; } if ( BP_strncasecmp ( methodStr , " " , 3 ) == 0 ) { return BP_HTML_FORM_METHOD_GET ; } return BP_HTML_FORM_METHOD_GET ; }
Returns a form method based around an input string
Returns a form method based around an input string
// return default as http get