Ethernet Shield not logging to 000webhostapp

Hi there!

I’m using ethernet shield W5100 to send data to an a virtual hosted website at

First I tried logging the data to localhost and by setting new inbound rules to bypass firewall, Arduino logged the data via local IP successfully.

but Same when I tried to send the data to a URL “” for instance and it works.

It didn’t update the database which can be seen from “

But same data when I try to send using manually from browser works.

Arduino does connect to the server (i See Connected stated in Serial Monitor) but no update is observed in database.

I searched and found exact problem here given at “” but the solution it gave was to put the space before /HTTP1.1 which I already kept before in my case.

Here is the Arduino Code. The online hosted page / server is working well. I know the problem is in the Code, but I couldn’t figure out where I’d miss my eye.

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
byte ip[] = {192, 168, 0, 108 };
//byte dn[] = {192, 168, 0, 1 };
//byte gate[] = {192, 168, 0, 1 };
//byte sub[] = {255, 255, 255, 0 };

char server[] = "";
EthernetClient client;

void setup() {

  while (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");  //DHCP
    //Ethernet.begin(mac, ip, dn, gate, sub); //static IP (uncommend ipaddress)
    //Serial.println("DHCP Success!");
  Serial.print("IP = ");

void loop() {

float l = 190;

if (client.connect(server, 80)) 
  client.print("GET /ethernet/data.php?level="
  client.println(" HTTP/1.1");
  client.println("Content-Type: application/x-www-form-urlencoded");
  client.println("Connection: close");
  Serial.print("Level= ");
  client.stop(); //Closing the connection
else {
// if you didn't get a connection to the server:
Serial.println("connection failed");

I am hoping the problem is in Ethernet Shield or some authentication problem to access shared hosted at

Thanks in advance!

Sorry I missed the closing brackets while editing but hasn't solved the problem yet.

client.print("GET /ethernet/data.php?level=");

and the link to page adding data to database:


and the link to page view data of database:


Oh well, solved it!

Oh well, solved it!

HI ronvoy please how do you solved the problem ?

Gosh! had to search 3 days of on every web page related to W5100 ..

You need to add CR LF at the end of every print() statement.

Can you show your Arduno code after you solve it please?