xhr domain, stream_copy_to_stream