Amirfk Member Jun 7, 2023 #1 Hello, I am using the following code to communicate with the rest api, but I am facing a 404 error. Each link and variable are correct. What suggestion and criticism do you have for this problem, thanks in advance .
Hello, I am using the following code to communicate with the rest api, but I am facing a 404 error. Each link and variable are correct. What suggestion and criticism do you have for this problem, thanks in advance .
walterf25 Expert Licensed User Longtime User Jun 8, 2023 #2 Amirfk said: Hello, I am using the following code to communicate with the rest api, but I am facing a 404 error. Each link and variable are correct. What suggestion and criticism do you have for this problem, thanks in advance . Click to expand... Where is the code? Upvote 0
Amirfk said: Hello, I am using the following code to communicate with the rest api, but I am facing a 404 error. Each link and variable are correct. What suggestion and criticism do you have for this problem, thanks in advance . Click to expand... Where is the code?
Amirfk Member Jun 8, 2023 #3 walterf25 said: Where is the code? Click to expand... Code: ar_req.Initialize("ar_req",Me) ar_req.Download2("https://app.example.com/api/v1/user_formats", Array As String("id","29")) ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOCKEN_IS_CORRECT") Upvote 0
walterf25 said: Where is the code? Click to expand... Code: ar_req.Initialize("ar_req",Me) ar_req.Download2("https://app.example.com/api/v1/user_formats", Array As String("id","29")) ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOCKEN_IS_CORRECT")
Amirfk Member Jun 8, 2023 #4 Amirfk said: Code: ar_req.Initialize("ar_req",Me) ar_req.Download2("https://app.example.com/api/v1/user_formats", Array As String("id","29")) ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOCKEN_IS_CORRECT") Click to expand... error : ResponseError. Reason: , Response: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Not Found</title> <style> /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a ... Upvote 0
Amirfk said: Code: ar_req.Initialize("ar_req",Me) ar_req.Download2("https://app.example.com/api/v1/user_formats", Array As String("id","29")) ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOCKEN_IS_CORRECT") Click to expand... error : ResponseError. Reason: , Response: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Not Found</title> <style> /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a ...
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2023 #5 Authorize header looks strange. Maybe it should be Authorization. Upvote 0
Amirfk Member Jun 11, 2023 #6 Erel said: Authorize header looks strange. Maybe it should be Authorization. Click to expand... Thanks Earl. The sample code is healthy, the problem was with the link. Code: ar_req.Initialize("ar_req",Me) ar_req.Download("https://app.example.com/api/v1/user_formats/29") ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOKEN") Upvote 0
Erel said: Authorize header looks strange. Maybe it should be Authorization. Click to expand... Thanks Earl. The sample code is healthy, the problem was with the link. Code: ar_req.Initialize("ar_req",Me) ar_req.Download("https://app.example.com/api/v1/user_formats/29") ar_req.GetRequest.SetHeader("Authorize","Bearer MY_TOKEN")