Fix a server bug, which the js script automatically removes the newline ...

...characters.

- changed HTTP methods from GET to POST