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)
If used with HTTPS, or secure information, disabling errors will create a security vulnerability. Its also important to know the limits of the HTTP stream context when operating on HTTPS data. Its probably not appropriate to use http context for this use, and you will want to use the SSL context for greater control. See, http://phpsecurity.readthedocs.org/en/latest/Transport-Layer-Security-%28HTTPS-SSL-and-TLS%29.html