cebar2002
(cebar2002)
July 6, 2021, 5:24am
#1
I have a problem with https function
i tried search information but i dont find nothing
local HS = game:GetService("HttpService")
local GroupId = 3846471
local Url = "https://catalog.roblox.com/v1/search/items/details?CreatorType=2&CreatorTargetId="
local Info = HS:GetAsync(Url..GroupId , true)
1 Like
You can’t call the roblox.com
domain using HttpService
1 Like
cebar2002
(cebar2002)
July 6, 2021, 5:30am
#3
then what should try with the httpsservice getasync to get the catalog info?
1 Like
Your best bet is to program a webserver to handle this, and then send that data to the game
1 Like
sloss2003
(sloss2003)
July 6, 2021, 5:47am
#5
You can use a proxy to do this, this appears to already be documented on the devforum, so try checking this out [or looking up how to make a proxy]
The gist of a proxy is to act as a middle-man between a client and a server, filtering through any requests and responses. You can do this in NodeJS super easily with the node-http-proxy library:
const httpProxy = require("http-proxy");
httpProxy.createProxyServer({
target: "http://api.roblox.com"
}).listen(8080);
That will create a proxy server on port 8080. Now you can hit any ‘api.roblox.com ’ stuff from that server. For instance, if I run that code on my computer, I can run the following …
1 Like