change curl to stream_context
change curl to stream_context