Advertisement
dradra1

Untitled

Mar 30th, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local url = "https://pastebin.com/raw/9Tnq0SUw" -- замените на реальный URL
  2. local response = http.get(url)
  3.  
  4. if response then
  5. local data = response.readAll()
  6. print("Успешно! Данные:")
  7. print(data)
  8. response.close()
  9. else
  10. print("Ошибка HTTP-запроса:")
  11. print("Код:", response and response.getResponseCode() or "нет ответа")
  12. print("Сообщение:", err or "неизвестная ошибка")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement