PHP POST file stream fallback when cURL methods not present. E.g. GAE

PHP POST file stream fallback when cURL methods not present. E.g. GAE (refactor)