Results 1 to 4 of 4

Thread: HTTPClient problem Scar -> PHP script

  1. #1
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default HTTPClient problem Scar -> PHP script

    SOLVED

    SCAR Code:
    program New;

    var ai: integer;
        s: string;

    begin
      ai := InitializeHTTPClient(false, false);
      AddPostVariable(ai, 'test', 'failtest');
      PostHTTPPageEx(ai, 'http://www.frement.net/scar/test.php');
      s := GetHTTPPage(ai, 'http://www.frement.net/scar/test.php');
      writeln(s);
      FreeHTTPClient(ai);
    end.

    PHP Code:
    <?php

    echo $_POST["test"];

    ?>
    Ok, so that should work, right? The output i get:
    Code:
    Successfully compiled (23 ms)
    
    Successfully executed
    Last edited by Frement; 01-14-2010 at 08:07 AM.
    There used to be something meaningful here.

  2. #2
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;

    var ai: integer;
        s: string;

    begin
      ai := InitializeHTTPClient(false, false);
      AddPostVariable(ai, 'test', 'failtest');
      s := PostHTTPPageEx(ai, 'http://www.frement.net/scar/test.php');
      writeln(s);
      FreeHTTPClient(ai);
    end.
    Verrekte Koekwous

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by mastaraymond View Post
    SCAR Code:
    program New;

    var ai: integer;
        s: string;

    begin
      ai := InitializeHTTPClient(false, false);
      AddPostVariable(ai, 'test', 'failtest');
      s := PostHTTPPageEx(ai, 'http://www.frement.net/scar/test.php');
      writeln(s);
      FreeHTTPClient(ai);
    end.
    Thanks man!
    There used to be something meaningful here.

  4. #4
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    Thanks man!
    You are welcome
    Verrekte Koekwous

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •