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

Why does roblox return a 404 for my website that is up?

Asked by 9 years ago
local hs = game.HttpService;
local rank = "Not%20in%20group";
local bc = "None";

game.Players.PlayerAdded:connect(function(plr)
    if plr.MembershipType == Enum.MembershipType.BuildersClub then
        bc = "BC";
    elseif plr.MembershipType == Enum.MembershipType.TurboBuildersClub then
        bc = "TBC";
    elseif plr.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
        bc = "OBC";
    else
        bc = "None";
    end
    if plr:IsInGroup(2727788) then
        rank = plr:GetRoleInGroup(2727788);
    end;
    print(plr.UserId.."|"..plr.Name.."|"..plr.AccountAge.."|"..plr.FollowUserId.."|"..bc.."|"..rank);
    local success = pcall(function()
        hs:PostAsync("http://roblox.removedforprivacy.com/index.php","?UserId="..plr.UserId.."&Name="..plr.Name.."&AccountAge="..plr.AccountAge.."&FollowUserId="..plr.FollowUserId.."&MembershipType="..bc.."&GroupRank="..rank,2);
    end);
    if not success then
        print("The remote server could not be accessed!");
    else
        print("http://roblox.removedforprivacy.com/index.php?UserId="..plr.UserId.."&Name="..plr.Name.."&AccountAge="..plr.AccountAge.."&FollowUserId="..plr.FollowUserId.."&MembershipType="..bc.."&GroupRank="..rank);
        print("sent "..plr.Name.."'s data to website");
    end;
end);

All of the variables print out properly and it prints "sent MrLonely1221's data to website" but before that it prints the error "Content failed because HTTP 404 (HTTP/1.1 404 Not Found)". I do web development and know for a fact that my website is up and running. Does anyone know why I am getting this error?

Answer this question