Set method to POST if we have postdata and no other method is set