RESTful PUT error

Alex Tweedly alex at
Mon Nov 27 18:54:07 EST 2017

"programming pattern"

I (sometimes) do something like this - so that each and every line of 
additional output looks and feels the same, e.g.

put "something" & CR after tVariable
put "something else" & CR after tVariable

i.e. every line finishes with   "  & CR after tVariable " so that can be 
pasted in (or, more likely, applied as a keyboard macro or Block-edit or 
.... whatever your favourite editor convenience is).

And if you're doing that, then for robustness you should start with "put 
empty into tVariable" so that you are not vulnerable to any subsequent 
code changes that use the same variable name earlier.

Don't know if that's the same as Todd's answer or not :-)

-- Alex.

On 27/11/2017 23:20, Bob Sneidar via use-livecode wrote:
> Why do you set the httpHeaders to empty just before you set them to something?
> Bob S
>> On Nov 27, 2017, at 04:27 , Todd Fabacher via use-livecode <use-livecode at> wrote:
>> *--Build the REST API Header*
>> *set* the httpHeaders to empty
>> *put* "Accept: application/json" & CR after tHeaders
>> *put* "Content-Type: application/x-www-form-urlencoded"  & CR after tHeaders
>> *set* the httpHeaders to tHeaders
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list