Android 4, post problem in detail
Pierre Sahores
sc at sahores-conseil.com
Sun Nov 18 05:09:28 EST 2012
Hi Takashi,
Sorry for the error in previous post. Please, read :
post URLEncode("kind=test2") to URL MIAS
instead at line 3.
Try :
put "http://m3-shiga.yoslab.net/m3is_v4_debug/test.php" into MIAS
get url (MIAS & "?function=test")
if it is not "" then
### parse your $_GET response
end if
set httpHeaders to "Content-type: application/x-www-form-urlencoded" & return
get url MIAS ### tip to be sure to wakeup the server ###
post URLEncode("kind=test2") to URL MIAS
if it is not "" then
### parse your $_POST or $_POST_RAW response
end if
Don't try to get both the GET and POST replies from a single request.
Always put "(" and ")" around urls containting vars and quoted contents.
HTH,
Pierre
Le 18 nov. 2012 à 08:56, Takashi Yoshino a écrit :
> Dear LiveCode Experts,
>
> I need your help.
>
> I developed some software using LiveCode.
>
> Post program cannot work on Android 4.0.4.
> It is work on Android 3.2.
>
> I wrote a short script to check Post.
>
> I think POST program has some problems.
>
> Could you give some information?
> I need your help.
>
> --------
> on mouseUp
> put empty into fld "test5"
> put "http://m3-shiga.yoslab.net/m3is_v4_debug/" into theServer
> post ("&kind=test2") to url theServer&"test.php?"&"function=test"
> put it into fld "test5"
> end mouseUp
> ------
>
> PHP program
> ---
> <?php
>
> try {
>
> print_r ($_GET);
> print_r ($_POST);
>
> } catch (Exception $e) {
> echo 'Error!: ' . $e;
> die();
> }
> ---
>
>
> My development environment is LC 5.5.3
>
>
> Best regards.
>
>
> _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._
> Takashi Yoshino
> http://www.wakayama-u.ac.jp/~yoshino/lab/
> Tel: +81-73-457-8441
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
Le 18 nov. 2012 à 08:56, Takashi Yoshino a écrit :
> Dear LiveCode Experts,
>
> I need your help.
>
> I developed some software using LiveCode.
>
> Post program cannot work on Android 4.0.4.
> It is work on Android 3.2.
>
> I wrote a short script to check Post.
>
> I think POST program has some problems.
>
> Could you give some information?
> I need your help.
>
> --------
> on mouseUp
> put empty into fld "test5"
> put "http://m3-shiga.yoslab.net/m3is_v4_debug/" into theServer
> post ("&kind=test2") to url theServer&"test.php?"&"function=test"
> put it into fld "test5"
> end mouseUp
> ------
>
> PHP program
> ---
> <?php
>
> try {
>
> print_r ($_GET);
> print_r ($_POST);
>
> } catch (Exception $e) {
> echo 'Error!: ' . $e;
> die();
> }
> ---
>
>
> My development environment is LC 5.5.3
>
>
> Best regards.
>
>
> _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._
> Takashi Yoshino
> http://www.wakayama-u.ac.jp/~yoshino/lab/
> Tel: +81-73-457-8441
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com
More information about the use-livecode
mailing list