This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LDDestroier's profile picture

An HTTP ping program

Started by LDDestroier, 24 October 2015 - 03:08 AM
LDDestroier #1
Posted 24 October 2015 - 05:08 AM
Exactly what it says on the tin. You put in a URL and it gets the ping of that website in ticks, gets the average success rate, and the average ping. Simple stuff.

pastebin get R4DKXbzm ping
std pb R4DKXbzm ping

Syntax:

ping <url> [times]
Waitdev_ #2
Posted 24 October 2015 - 09:14 AM
"An HTTP"
don't you mean "A HTTP"?
anyway, nice idea for a program. though have you capped the amount of ping times? more than a certain amount can crash a website
oeed #3
Posted 24 October 2015 - 10:03 AM
Nice idea, I presume this is actually HTTP pages, rather than using an HTTP proxy to use real ping?

"An HTTP"
don't you mean "A HTTP"?
Just to nitpick, you actually use an when it's a vowel sound, not letter. This page explains it http://english.stackexchange.com/questions/152/when-should-i-use-a-vs-an

That said, you might still be correct depending on pronounciation, I know some people in Adelaide and other places in Australia pronounce 'h' like h-ayyyche (with the start sounding like hotel), not 'ayyyche' as most do.
LDDestroier #4
Posted 24 October 2015 - 06:17 PM
"An HTTP"
don't you mean "A HTTP"?
Just to nitpick, you actually use an when it's a vowel sound, not letter. This page explains it http://english.stack...d-i-use-a-vs-an

That said, you might still be correct depending on pronounciation, I know some people in Adelaide and other places in Australia pronounce 'h' like h-ayyyche (with the start sounding like hotel), not 'ayyyche' as most do.

I live in MURICA, and 'ere we pronawuhnse 'h' as 'aych'.

Also, I did cap the amount of times it pings a server at 200. That or any higher is rejected.