SIM900 post

Hi, how post in a link like http://google.lt with SIM900 with AT command? i use this libarys: http://www.gsmlib.org/download.html

I don’t understand the question.

i need send data to link, like this:

numdata = inet.httpPOST(“www.test.com”, 80, “/arduino/new.php”, “testas=asd”, msg, 50);

but i cant use this because when i send data to new.php i start TCP server
works fine but not working gsm.SimpleWrite(“aaa”); and i cant read this with php socket_read($socket,10000); but if i dont use
numdata = inet.httpPOST(“www.test.com”, 80, “/arduino/new.php”, “testas=asd”, msg, 50); works fine, but i need send data to web…

my code:

arduino

#include "SIM900.h"
#include "SoftwareSerial.h"
#include "inetGSM.h";

float tempC = 0, dregn = 0;
int numdata, led = 13, state, flag = 0;
InetGSM inet, inets;
char msg[50];
const float SUPPLY_VOLTAGE = 5.0;
boolean started=false;

void setup(){
  
  pinMode(led, OUTPUT);
 
  Serial.begin(9600);
  Serial.println("GSM Shield ArduiCar");
  
  if (gsm.begin(9600)){
    Serial.println("Software Serial begin at 9600");
    gsm.forceON();
    started=true;
  }
  
  if(started){
    
      numdata = inet.httpPOST("www.klondaikas.lt", 80, "/arduino/newIp.php", "testas=asd", msg, 50);
       delay(5000);
      inet.attachGPRS("internet.tele2.lt", "", "");
      gsm.WhileSimpleRead();

  }
  
  if(started){
      Serial.println("APN Settings ok! Starting GPRS Connection!");
      gsm.SimpleWriteln("AT+CIFSR");
      delay(5000);
      gsm.WhileSimpleRead();
      inet.connectTCPServer(5000);
      delay(5000);

    }
}

void loop() {
  state = gsm.read();
  if (state == 'o'){
    digitalWrite(led, HIGH);
    gsm.SimpleWrite("aaa");
  }else if (state == 'f'){
    digitalWrite(led, LOW);
    gsm.SimpleWrite("bbb"); 
  }else if(state == 'g'){
    Serial.println(temp());
    gsm.SimpleWrite(temp());
  }
}

float temp(){
  delay(500);
  const int sensor_voltage = analogRead(5);
  const float voltage = sensor_voltage * SUPPLY_VOLTAGE / 1024;
  return (voltage * 100);

}

float dreg(){
  delay(500);
  dregn = analogRead(4);
  //dregn = dregn / 1023 * 100;
  delay(500);
  return dregn;
}

and php when i send and read TPC

<?php

$service_port = '5000';
$address = '77.219.69.39';
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$result = socket_connect($socket, $address, $service_port);

$json = array("dregme" => 0, "temperatura" => 0);

socket_write($socket, 'o');
$json["dregme"] = socket_read($socket,10000);
//echo socket_read($socket,100);
//socket_close($socket);
echo json_encode($json);

?>