Page 1 of 1

Problem with "get" command

Posted: Thu Nov 09, 2017 12:21 pm
by Peter@multidesk.se
I have several "post" commands in my application and these work as they should.

The problem is that I need a "get" command at one place and then I get the following errors:

<! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 // EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML> <HEAD> <TITLE> Not Found </ TITLE>
<META HTTP-EQUIV = "Content-Type" Content = "text / html; charset = us-ascii"> </ HEAD>
<BODY> <h2> Not Found </ h2>
<hr> <p> HTTP Error 404. The requested resource is not found. </ p>
</ BODY> </ HTML>

It appears that the "post" command, somehow blocks the "get" command.

This applies even if I open my application with all the "post" command and then an application with a "get" command in my Livecode IDE and try to test them in that order, I get the same error, despite the fact that there are two separate applications, In reverse order, it works as it should.

Same thing if I delete all the "post" command in my application, before the "get" command, then it works.

If I paste the generated string into my browser, it also works. I only get this error through my application/s regardless if I run them in my IDE or as a standalone and only when the Get command follow the "post" command.


How is it that, anyone?



/// Peter

Re: Problem with "get" command

Posted: Thu Nov 09, 2017 1:05 pm
by Thierry
Hi Peter,

shooting a bit in the dark...

could you try to add this line before your get url?

set the httpHeaders to empty

Regards,

Thierry

Re: Problem with "get" command

Posted: Thu Nov 09, 2017 3:06 pm
by Peter@multidesk.se
Thierry,

Work like a charm

Many thanks


///Peter