curl_example_improved_for_low_latency_case (eg. communication with localhost)