   if (client.available())
   {
     char c = client.read();
-    Serial.print(c);
+    debug(c);
   }
 
   // if the server's disconnected, stop the client:
   if (!client.available() && !client.connected())
   {
-    Serial.println();
-    Serial.println("disconnecting.");
+    debugln();
+    debugln("disconnecting.");
     client.stop();
 
     // do nothing forevermore:

#include <SoftwareSerial.h>
#include <SIM900.h>

// PIN Number
#define PINNUMBER ""



// URL, path & port (for example: arduino.cc)
char server[] = "arduino.cc";
char path[] = "/asciilogo.txt";
int port = 80; // 80 for HTTP

void setup()
{
  // initialize serial communications
  debug.begin(115200);
  Serial.begin(57600); // must set the baudrate to the modem and initialize the serial port to the modem
  debug.println("Starting Arduino web client.");
  // connection state
  boolean notConnected = true;

