Jump to content

gmiskos

New Members
  • Posts

    2
  • Joined

  • Last visited

gmiskos's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i ve tried this $params = array ( 'U' => 'the username', 'P' => 'the password', 'A' => 'WEB2SMS', 'L' => 'EL' ); $query = http_build_query ($params); // Create Http context details $contextData = array ( 'method' => 'POST', 'header' => "Connection: close\r\n". "Content-Length: ".strlen($query)."\r\n", 'content'=> $query ); // Create context resource for our request $context = stream_context_create (array ( 'http' => $contextData )); // Read page rendered as result of your POST request $result = file_get_contents ( 'http://web2sms.cosmote.gr/web2sms/DCM', // page url false, $context);
  2. how can i make a php post request in the bellow action with api url : http://web2sms.cosmote.gr/web2sms/DCM <REQUEST Version="1.0" encoding="UTF-8"> <ACTION Name="POSTLogin" /> <PARAMETERS> <PARAM Type="String" Name="U" Value="Username" /> <PARAM Type="String" Name="P" Value="Password" /> <PARAM Type="String" Name="A" Value="WEB2SMS" /> <PARAM Type="String" Name="ACCOUNT" Value="AccountName" /> <PARAM Type="String" Name="L" Value="Language" /> </PARAMETERS> </REQUEST>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.