Last edit: @abarnett in <!error getting other user for D6NDVJ8F3> 2 years ago - Slack Archive

{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
-- print(string.find(resp:text(), "<PRE>"), ' ')
-- print(string.find(resp:text(), "</PRE>"))
return resp:text()

History

{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
-- print(string.find(resp:text(), "<PRE>"), ' ')
-- print(string.find(resp:text(), "</PRE>"))
return resp:text()
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
-- print(string.find(resp:text(), "<PRE>"), ' ')
-- print(string.find(resp:text(), "</PRE>"))
-- return resp:text()
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(string.find(resp:text(), "<PRE>"), ' ')
print(string.find(resp:text(), "</PRE>"))
-- print(resp:text())
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(string.find(resp:text(), "<PRE>"))
print(string.find(resp:text(), "</PRE>"))
-- print(resp:text())
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
local begin = string.find(resp:text(), "<PRE>")
local end = string.find(resp:text(), "</PRE>")
-- print(resp:text())
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(string.sub(resp:text(), begin, end)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(string.find(resp:text(), "<PRE>"))
print(string.find(resp:text(), "</PRE>"))
print(string.sub(resp:text(), begin, end)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
local begin = string.find(resp:text(), "<PRE>")
local end = string.find(resp:text(), "</PRE>")
print(string.sub(resp:text(), begin, end)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp:text():gmatch("<PRE>(.-)</PRE>"))
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp:text())
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp:text())
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp.text)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
print(resp.text)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
else print("success") end
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp.txt)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
print(resp)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
print(resp)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
else print("success") end
print(resp.html)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
else print("success") end
print(resp)
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return
else print("success") end
{lua}
local resp, err = requests.get("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
else print("success") end
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
local resp, err = http.request("http://man.he.net/?topic=write&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
print('body', body)
{lua}
local resp, err = requests.get(man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
local resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
local resp, err = requests.get("http://man.he.net/?topic-write&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
local resp, err = requests.get("man.he.net/?topic-write&section=all")
if err ~= nil then print("Error: " .. err) return end
{lua}
requests = require('requests')
response = requests.get('http://httpbin.org/robots.txt')
print(response.txt)
{lua}
response = requests.get('http://httpbin.org/robots.txt')
print(response.txt)
{lua}
requests = require('requests')
response = requests.get('http://httpbin.org/get')
print(response.status_code)
{lua}
response = requests.get('http://httpbin.org/get')
print(response.status_code)

Revision: 2148 (deleted) by @abarnett in <!error getting other user for D6NDVJ8F3> 2 years agoSlack Archive

{lua}
resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all", Nil, Nil)
{lua}
resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
{lua}
resp, err = requests.get("http://man.he.net/?topic=%inp%&section=all")
{lua}
resp, err = requests.get(http://man.he.net/?topic=%inp%&section=all)
{lua}
resp, err = requests.get(http://man.he.net/?topic=%inp%&section=all)
resp, err = requests.get(http://man.he.net/?topic=%inp%&section=all)