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://18.104.22.168:85 -L
About to connect() to 22.214.171.124 port 85 (#0) Trying 126.96.36.199... connected Connected to 188.8.131.52 (184.108.40.206) port 85 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/220.127.116.11 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 18.104.22.168: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.