[Seaside] Testing the state of one url

dtrussardi at tiscali.it dtrussardi at tiscali.it
Sat Oct 11 13:57:26 UTC 2014


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
> 
> dtrussardi at tiscali.it 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
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list