Changeset 1119


Ignore:
Timestamp:
2007/01/19 23:41:48 (15 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/test/uehara/request.php

    r1118 r1119  
    44require(XOOPS_ROOT_PATH . "/pear/Request.php"); 
    55 
     6$objHttp = new HTTP_Request("http://www.bnote.net/"); 
    67 
    7 echo "HELLO!!"; 
     8$objHttp->setMethod(HTTP_REQUEST_METHOD_POST); 
     9$objHttp->addPostData("user", "bnote"); 
    810 
     11if (!PEAR::isError($objHttp->sendRequest())) { 
     12    $body = $objHttp->getResponseBody(); 
     13} 
     14 
     15sfprintr($body); 
    916?> 
Note: See TracChangeset for help on using the changeset viewer.