1

PHP ページにアクセスするために、次のコードを試しました。

String url = "http://mypage.example.com/test.php?name="+data;
aq.ajax(url, String.class, new AjaxCallback<String>() {

    @Override
    public void callback(String url, String html, AjaxStatus status) {
        Log.w(Tags.DEBUG,String.valueOf(status.getCode()));
    }

});

呼び出しが行われた場合、私の PHP ページはファイルを書き込みます。ブラウザ内で URL を使用すると、ファイルが作成されます。Android アプリを使用しても何も起こりません。ステータス コードは 200 です。他に何を設定すればよいですか?

アップデート:

私のページのソース:

<html>
    <head>
    <title>MY WEBSITE</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    <frameset rows="92, *" frameborder=NO border=1 framespacing=0 cols=*>
    <frame name="topFrame" scrolling=NO noresize src="http://example.com/ads.php?ad=user12&cat=16" frameborder=NO>
    <frame name="user" src="http://example.com/user12/test.php" scrolling=auto>
    </frameset>
    <noframes>
    <body bgcolor=#FFFFFF text=#000000>
    <a href="http://example.com/user12/test.php">http://example.com/user12/test.php</a>
    </body>
    </noframes>
    </html>
4

1 に答える 1