Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

No success with HttpService?

Asked by 8 years ago

So I'm trying to read a message on my website, but it doesn't read all of it and I don't know why, heres my code.

hs = game:GetService("HttpService")

link = hs:GetAsync("http://swagman.net63.net/server.html")

local whattoolookfor = [[<p1>Welcome message: %S+</p1>]]

local find = link:match(whattoolookfor)

message = find:match("%S+")

print(message)

my website is http://swagman.net63.net/server.html

as I was saying, it doesn't read all of it, instead it just gives me this:

https://gyazo.com/4a313f5ff4164718ffe0129df774f7ba

0
1. you use <p> not <p1> MrLonely1221 701 — 8y
0
I would recommend using %w+ MrLonely1221 701 — 8y
0
hey, i tried using %w+ string pattern but it just printed "p" Awsomeman511 30 — 8y

Answer this question