NetClients HTTP and handling errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NetClients HTTP and handling errors

Holger Freyther
Hi Paolo,

for the HTTP implementation in NetClients it would be nice if instead of
exceptions for the 40x and 30x I would get a proper response. Right now for a
HTTP Redirect I will not be able to get the response code or the content that
was sent. Would you mind adding a method to inhibit these exceptions?

cheers
        holger


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: NetClients HTTP and handling errors

Paolo Bonzini-2
On Sun, Mar 20, 2011 at 08:55, Holger Hans Peter Freyther
<[hidden email]> wrote:
> Hi Paolo,
>
> for the HTTP implementation in NetClients it would be nice if instead of
> exceptions for the 40x and 30x I would get a proper response. Right now for a
> HTTP Redirect I will not be able to get the response code or the content that
> was sent. Would you mind adding a method to inhibit these exceptions?

I need to look at the code, but I wonder if you just need to handle
them and resume them.

Alternatively, the response could be included in the exception.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: NetClients HTTP and handling errors

Paolo Bonzini-2
On 03/21/2011 08:28 AM, Paolo Bonzini wrote:

> On Sun, Mar 20, 2011 at 08:55, Holger Hans Peter Freyther
> <[hidden email]>  wrote:
>> Hi Paolo,
>>
>> for the HTTP implementation in NetClients it would be nice if instead of
>> exceptions for the 40x and 30x I would get a proper response. Right now for a
>> HTTP Redirect I will not be able to get the response code or the content that
>> was sent. Would you mind adding a method to inhibit these exceptions?
>
> I need to look at the code, but I wonder if you just need to handle
> them and resume them.
>
> Alternatively, the response could be included in the exception.
Perhaps something like this would help?

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

http.patch (19K) Download Attachment