Fallback to stream_context_create when curl is not supported