I am using curl to send a HTTP request but curl app is not receiving response. I tried to debug it using tcpdump and found that remote server is responding with data (HTTP 302 Found) but my curl application is not getting that data from the linux tcp stack.
My curl request is:
curl -v --max-redirs 10 http://22.214.171.124:85 -L
About to connect() to 126.96.36.199 port 85 (#0) Trying 188.8.131.52... connected Connected to 184.108.40.206 (220.127.116.11) port 85 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/18.104.22.168 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 22.214.171.124:85 > Accept: */* >
It hangs here, awaiting data from server
I have copied the trace file at PCAP File
Please let me know if something is wrong in the data packet or a way to debug TCP stack to know why its dropping the data, although it looks good in wireshark w.r.t checksum and other parameters.