Jump to content
  • 0

Permission access url makerequest


bukandewa

Question

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)

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.