Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 19 Aug 2015 07:56 PM |
How do I test to see if I am able to GET info from a URL, via HTTP:GetAsync() WITHOUT THE CONSOLE DISPLAYING AN ERROR INFO!!!!!
I've tried:
local HTTP = game:GetService("HttpService") local url = "test" function check() HTTP:GetAsync(url) end success, message = pcall(check) if success then print("success") else print("An error FAILED: "..message) end
_____________________-
The pcall works, BUT the console says, Unable to get HTTP Get request, etc. I DONT WANT IT TO STAY THIS. I want it to check if it can get anything, if not, do the print(). I DONT WANT THE CONSOLE PRINTING ANYTHING.
Any ideas? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 07:58 PM |
| There /should/ be a way to disable warning messages, but I doubt there is. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 19 Aug 2015 08:00 PM |
| That's not an error, it is the response. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 08:01 PM |
I have no idea how to disable error messages, but try putting http:// in front of test XD
It's simple physics |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 19 Aug 2015 09:48 PM |
| How about is there anyway I can simply "CHECK" if I can get info from a website. Just check, not actually try? |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 09:51 PM |
local req = game:GetService("HttpService"):GetAsync("http://google.com",true) print(req) If a test server prints something then http works if not then nada :D while true do the do |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 09:52 PM |
| No, you can't just 'check'. : |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 09:53 PM |
@quinitinity yeah you can :P
while true do the do |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Aug 2015 09:53 PM |
@Ripepperoni noo why this name?
while true do the do |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Aug 2015 09:54 PM |
| Tell me, how do you check if a website is valid using HTTPService without it sending any requests. I'm genuinely interested. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 09:56 PM |
@Quintinity, you say abraka dabra!! I thought OP wanted to get info from a website , I missed the without the HttpService part ;P while true do the do |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2015 10:08 PM |
oh without httpserice
lmaooo?????????????????????????????????????????????? ?????
It doesn't matter if the console prints anything nobody really looks at that
|
|
|
| Report Abuse |
|
|