java - Web Server : retrieve POST data values -


i'd value of specific key when web server detects post request.

the best method found :

string content = request.getcontent(); 

example of post data : field1=some-data&field2=other-data

i need : "some-data" given field "field1"

i tried use :

string value = request.getparameter("field1"); 

but works if pass data url ..

i wonder if should use regex. if case, best pattern ?

thanks in advance!


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -