Search found 10 matches

by SureTint
Sat Mar 28, 2015 3:34 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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. :D
by SureTint
Sat Mar 28, 2015 12:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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.
by SureTint
Fri Mar 27, 2015 7:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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 HTT...
by SureTint
Fri Mar 27, 2015 6:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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.
by SureTint
Fri Mar 27, 2015 5:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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 field txtPI...
by SureTint
Fri Mar 27, 2015 4:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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.
by SureTint
Fri Mar 27, 2015 12:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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.
by SureTint
Fri Mar 27, 2015 3:01 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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 threa...
by SureTint
Thu Mar 26, 2015 7:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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":"73326443A14B47BCA37115CB75CEC375"} R...
by SureTint
Thu Mar 26, 2015 5:09 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: API JSON return "No header received"
Replies: 19
Views: 12196

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 the text ...