Testing the state of one url

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

Testing the state of one url

dtrussardi@tiscali.it
Ciao,

        i need to test  the state of one url.

        How i can send the request to the specific url and manage the answer for understand the state.

        I search in the Seaside test but i don't find any example about it.

        Thank for any consideration,


                Dario_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Testing the state of one url

jtuchel
Dario,

what exactly do you mean with the state of a url? Whether a server responds at all, or if the http response contains a crtain http status code?

This is only loosely related to Seaside. What you'd have to do isto send a simple http request to the url ans check the esulting http response.

What dialect are you on? The http client implementations between e.g. Pharo and VA differ. But seinding http requests is simple in all current smalltalks...

Joachim

[hidden email] schrieb:

>Ciao,
>
> i need to test  the state of one url.
>
> How i can send the request to the specific url and manage the answer for understand the state.
>
> I search in the Seaside test but i don't find any example about it.
>
> Thank for any consideration,
>
>
> Dario_______________________________________________
>seaside mailing list
>[hidden email]
>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Testing the state of one url

dtrussardi@tiscali.it
Thank Joachim,

> Dario,
>
> what exactly do you mean with the state of a url? Whether a server responds at all, or if the http response contains a crtain http status code?

I think to test all the case.

>
> This is only loosely related to Seaside. What you'd have to do isto send a simple http request to the url ans check the esulting http response.
>
> What dialect are you on? The http client implementations between e.g. Pharo and VA differ.

I development with Pharo but deployed with Gemstone GLASS.

> But seinding http requests is simple in all current smalltalks...

I find the HTTPClient. It work fine.

        If the request answer a string i can translate it into a subelement with right data? ( for example the http error )

Thanks,

        for your time,

                Dario

       

>
> Joachim
>
> [hidden email] schrieb:
>
>> Ciao,
>>
>> i need to test  the state of one url.
>>
>> How i can send the request to the specific url and manage the answer for understand the state.
>>
>> I search in the Seaside test but i don't find any example about it.
>>
>> Thank for any consideration,
>>
>>
>> Dario_______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside