curl-users
Http response with ssl curl from YouTube
Date: Tue, 28 Apr 2015 14:05:32 +0200
Hi All,
I am using curl 7.42 ssl/ssh on windows 64-bit with cmd.
I am trying to get the html source of a youtube video with a http response
but when I inspect the downloaded html it used https. I know this because
some of the links shown start with https and one parameter is
requiressl=yes.
In addition I must use a curl version with ssl/ssh.
The commands I tried are these:
curl --proto =http --proto-redir =http --user-agent "Mozilla/5.0 (Windows
NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90
Safari/537.36" -L -x http://foo.bar.proxy.com:8080
http://youtube.com/watch?v=youtubevideolink > test.html
This one returns a “curl: (1) Protocol “https” not supported or disabled in
libcurl”. I believe this error is wrong as curl –version shows https.
curl --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36" -L -x
http://foo.bar.proxy.com:8080 http://youtube.com/watch?v=youtubevideolink >
test.html
This one works but the response / content of my test.html contains https
links which I do not want.
Is it possible to get a http response?
Regards
Sceiler
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-28