Now I just have to figure out how to properly include the json library.
Search found 10 matches
- Sat Mar 28, 2015 3:34 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thanks for your help. Fiddler pointed me to a temporary redirect that none of the applications or browsers were showing me. Once I saw the redirect, it was an easy fix to the URI to prevent it.
Now I just have to figure out how to properly include the json library.
Now I just have to figure out how to properly include the json library.
- Sat Mar 28, 2015 12:54 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thanks All. I'll pursue using Fiddler to try and unravel the error. With the information in the last post I feel confident LiveCode can do what I need it to. I'll post as soon as I have more relevant information.
- Fri Mar 27, 2015 7:02 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Figured I'd go ahead and post my reply without the included code as some setting on the forum is preventing that post.
I have multiple lower-level code sets accessing the API currently in ASP(dot)net, Swift and c# with no issue. For example, the API is used in c# and ASP(dot)net using a standard ...
I have multiple lower-level code sets accessing the API currently in ASP(dot)net, Swift and c# with no issue. For example, the API is used in c# and ASP(dot)net using a standard ...
- Fri Mar 27, 2015 6:29 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thanks for the reply.
I'm trying to get a reply posted, but am having issues with the BB accepting the post. I have a note into the Forum administrator currently.
I'm trying to get a reply posted, but am having issues with the BB accepting the post. I have a note into the Forum administrator currently.
- Fri Mar 27, 2015 5:06 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
I went ahead and tried to use the binary method for getting the data, but still no luck. :(
Here is the code I tried:
on mouseUp
if the text of field txtPIN is empty then
answer "I couldn't see a PIN number for you. Give it another try."
else
put "APIURL/checksecurity?pin=" & the text of ...
Here is the code I tried:
on mouseUp
if the text of field txtPIN is empty then
answer "I couldn't see a PIN number for you. Give it another try."
else
put "APIURL/checksecurity?pin=" & the text of ...
- Fri Mar 27, 2015 4:33 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
No problem Bangkok
You are correct, the return is a binary stream "octet-stream". Is this an issue in LiveCode?
I do have Web, Windows Forms and iOS Apps working with the API currently so I didn't really see it as an issue.
Thanks again to all responders.
You are correct, the return is a binary stream "octet-stream". Is this an issue in LiveCode?
I do have Web, Windows Forms and iOS Apps working with the API currently so I didn't really see it as an issue.
Thanks again to all responders.
- Fri Mar 27, 2015 12:20 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thank you for the reply Sparkout.
This site does not use authentication as it simply a testing site used for RAD proof of concept. I will definitely remember to look at that for production however.
This site does not use authentication as it simply a testing site used for RAD proof of concept. I will definitely remember to look at that for production however.
- Fri Mar 27, 2015 3:01 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thanks to all responders.
mweider is correct, the "APIUrl" is just to hide the actual URL of the web service.
I have set the http headers to your suggestion bangkok, but to no avail. Still not getting a response string into the variable, just the "no headers" error referenced initially in this ...
mweider is correct, the "APIUrl" is just to hide the actual URL of the web service.
I have set the http headers to your suggestion bangkok, but to no avail. Still not getting a response string into the variable, just the "no headers" error referenced initially in this ...
- Thu Mar 26, 2015 7:21 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
Re: API JSON return "No header received"
Thanks for the reply mweider.
I realized after reading your response, I should have listed what gets returned from the call:
PIN invalid:
{"Response":"Not Found"}
PIN valid:
{"GlobalId":"E2411D32BFAB4A578E90C65056EB19AC","UserName":"Britany","PIN":"1","Location ...
I realized after reading your response, I should have listed what gets returned from the call:
PIN invalid:
{"Response":"Not Found"}
PIN valid:
{"GlobalId":"E2411D32BFAB4A578E90C65056EB19AC","UserName":"Britany","PIN":"1","Location ...
- Thu Mar 26, 2015 5:09 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: API JSON return "No header received"
- Replies: 19
- Views: 14353
API JSON return "No header received"
I'm trying to work with a restful API that returns JSON, but I'm getting the error referenced in the subject. The code i have is:
put "APIURL?pin=" && the text of field txtPIN into tAPIReq
replace " " with "" in tAPIReq
put URL tAPIReq into tJsonResp
put the result in theError
In this case ...
put "APIURL?pin=" && the text of field txtPIN into tAPIReq
replace " " with "" in tAPIReq
put URL tAPIReq into tJsonResp
put the result in theError
In this case ...