cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: http 403 fobidden from YouTube

From: ภ่ะกปิ <lixiaohui9219_at_126.com>
Date: Sun, 30 Dec 2012 14:07:01 +0800 (CST)

Hi Dan,>> My mediaplay use curl for http stream download. When I play the video , often
>> return the 403 fobidden error recently. I don't know whether I can get the 403
>> substatus error code using the libcurl. How to do it? Thanks!
>
>Are you looking for the CURLINFO_RESPONSE_CODE option to
>curl_easy_getinfo()?
>
>>>> DanWhen play the video , often return "> Http 1.1 ,403 forbidden", it is possible return ">http 1.1 200 ok" when try many times. I know http 403 error have substatus error such as "403.1 - Execute access forbidden", "403.2 - Read access forbidden." and so on. Do you mean I should set the CURLINFO_RESPONSE_CODE option using curl_easy_getinfo() can get the substatus error ? Thanks!

>
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>curl-library mailing list
>curl-library_at_cool.haxx.se
>http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
>------------------------------
>
>End of curl-library Digest, Vol 88, Issue 47
>********************************************

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-30