Update proxy.php

Moved the $postdata command into the POST check.