[webkit-dev] How to handle error response on the browser when the HTTP request fails

zaheer ahmad zaheer.mot at gmail.com
Thu Feb 12 21:20:09 PST 2009


I think you need to set CURLOPT_FAILONERROR on the curl handle for the curl
to report http errors. Also in general you would want to diffferentiate how
you handle errors on mainresource vs subresources

regards,
Zaheer

On Thu, Feb 12, 2009 at 9:04 PM, Nitin Walke <nitwalke at gmail.com> wrote:

> Hi,
>
> Thanks for your suggestion. I added delegate method in
> FrameloaderClient::dispatchDidFailLoading for GTK, however,
> noticed that the control flow never reached there - either in case of
> successful response or for http error like server not found etc.
> Then I added some debug code in FrameloaderClient::dispatchDidFailLoading
> for GTK; and found that the control flow does not reach there.
>
> Am I missing something here? Your inputs will be appreciated.
>
> Regards,
> Nitin
>
>
> On Thu, Feb 12, 2009 at 11:55 AM, zaheer ahmad <zaheer.mot at gmail.com>wrote:
>
>> If you are using curl backend, network errors are already reported back
>> but ignored. you need to implement FrameloaderClient::dispatchDidFailLoading
>> delegate to pass it back to the application.
>>
>> regards,
>> Zaheer
>>
>>
>> On Wed, Feb 11, 2009 at 7:03 PM, Nitin Walke <nitwalke at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am new to Webkit and have developed a basic browser using Webkit GTK
>>> port on linux.
>>> I want to show error response on the browser when the HTTP request fails
>>> for some reason like
>>> bad gateway or Server error etc. Currently the browser does not show any
>>> response in case of any error.
>>> Please advise how to go about implementing the same.
>>>
>>> Thanks
>>>
>>> _______________________________________________
>>> webkit-dev mailing list
>>> webkit-dev at lists.webkit.org
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090213/d7a2f848/attachment.html>


More information about the webkit-dev mailing list