Correctly check if the text parameter is set.
Added support for sending data through POST as well as GET for large data chunks.