made POST default HTTP method
fixed problem with how data is sent for GET requests