curl / Mailing Lists / curl-library / Single Mail

curl-library

HTTP redirect to HTTPS stops

From: Dave S <snidely.too_at_gmail.com>
Date: Tue, 21 Mar 2017 13:25:46 -0700

I'm way back on 7.29.0, so this may be a stupid question, but ...

doing a POST to a service we subscribe to, and using the HTTP: scheme, the
server sends a 302 redirecting to the same URI with the scheme changed to
HTTPS. The 302 frame also has connection: closed.

The return code from curl_easy_perform()is 0, but no data is returned, and
tcpdump doesn't show any additional interchange after the ack.

Changing my URI string (in source) to use the HTTPS: scheme, the exchange
completes normally, but should I have been able to troubleshoot this
without using tcpdump? Is a redirect to change scheme not automatically
followed?

Thanks.

(and yes, I have been feeling guilty about using an old version, so I'll
work to get both my development and the production moved forward)

Dave
/dps

-- 
test signature -- please apply at front gate on Tuesdays only.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-21