cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: http 403 fobidden from YouTube

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 30 Dec 2012 08:34:40 +0100

On Sun, Dec 30, 2012 at 02:07:01PM +0800, ภ่ะกปิ wrote:
> When 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!

HTTP does not define a substatus code; only the three digit 403 code
will be returned by CURLINFO_RESPONSE_CODE. A "substatus" code may be
displayed in the textual part of the response for the benefit of the
user, but this is not standardized and your code would need to parse the
body of the message in order to extract that.

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

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET