This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Digest Auth - JSON
#3
I tried the script from the thread but i got this as a result:

* arg: 1
* string:
* arg: 2
* string: missing credentials in url
* arg: 3
* nil

The credentials are in the url like: https://myemail@gmail.com:password@url
Is it because the username is an email address or is there something else what's wrong? I try to get the data of some JSON string.
When i try the complete url in the browser it does work.

(15.07.2023, 14:44)Joep Wrote: I tried the script from the thread but i got this as a result:

* arg: 1
  * string:
* arg: 2
  * string: missing credentials in url
* arg: 3
  * nil

The credentials are in the url like: https://myemail@gmail.com:password@url
Is it because the username is an email address or is there something else what's wrong? I try to get the data of some JSON string.
When i try the complete url in the browser it does work.

Yes the email address for the user seems to be the problem. When logging log(url.user) i just got the first part of the email address back and not the complete email address. That makes sense as the part after the @ is seen as the url of course. But how to solve this as i can't change the user.
Reply


Messages In This Thread
Digest Auth - JSON - by Krstfr2k - 08.01.2021, 11:04
RE: Digest Auth - JSON - by admin - 11.01.2021, 08:04
RE: Digest Auth - JSON - by Joep - 15.07.2023, 14:44
RE: Digest Auth - JSON - by Joep - 15.07.2023, 15:58
RE: Digest Auth - JSON - by Joep - 17.07.2023, 15:17
RE: Digest Auth - JSON - by admin - 17.07.2023, 15:20
RE: Digest Auth - JSON - by Joep - 19.07.2023, 12:52
RE: Digest Auth - JSON - by admin - 19.07.2023, 13:04
RE: Digest Auth - JSON - by Joep - 19.07.2023, 13:55

Forum Jump: