switch from curl to netcat