Jump to content

Archived

This topic is now archived and is closed to further replies.

bukandewa

Permission access url makerequest

Recommended Posts

Hi.

 

I try to make a little research use GG API makeRequest. If url is public, makeRequest works. But, if i try to give permission access in the same url, makeRequest wont work. 

 

Below example my code. Is this about user agent or i miss something to make this code work as i want?

Thanks.

local LOAD, FILE
LOAD = loadfile
FILE = filename
LOAD, FILE = LOAD(FILE)
err = FILE
f = LOAD
LOAD = gg
LOAD = LOAD.makeRequest
FILE = "https://url.com"
LOAD = LOAD(FILE)
LOAD = LOAD.content
FILE = load
FILE = FILE(LOAD)
pcall(FILE)

 

 

Share this post


Link to post
Share on other sites

12 minutes ago, bukandewa said:

If url is public, makeRequest works. But, if i try to give permission access in the same url, makeRequest wont work. 

I not understand. Explain more clear.

Share this post


Link to post
Share on other sites
8 minutes ago, Enyby said:

I not understand. Explain more clear.

Sorry for my bad english first.

 

I mean, for example gameguardian.net/version.txt is public link, all people can view. It is no problem if i use public link to load my code online use my code above.

 

But if i try make private file with permission access restricted, only owner and people with permission access can view content in the link.

Log print error in attachment.

printlog.txt

Share this post


Link to post
Share on other sites

The script downloads the authorization page. It should be so.
Obviously you do not understand how authorization works.
You can not log in to any page.
You must use either basic authorization or a post request. Not every site supports this.
In any case, this does not apply to GG. There is no mistake here.
Use Google for self-study.
That's all I wanted to say.

Share this post


Link to post
Share on other sites

  • Similar Content

    • By Squidoodle04
      I want to make a script where you can close GG without ending script.
      Is this possible and if yes, could someone explain me how?
    • By Squidoodle04
      Hello,
      I saw some scripts where GG searched the numbers so fast that you couldn't even see them.
      Could someone tell me how this is possible and explain how it works
      and how I can make it myself?
×
×
  • Create New...