replaced CURL with stream_context (experimental)