Problem with sending json data via wired network to domoticz

Hi!

I am using Domoticz for house-automation.
From a webbrowser I can control Domoticz e.g. with:
192.168.2.13:8080 /json.htm?type=command&param=switchlight&idx=770&switchcmd=Off
192.168.2.13 is IP of Domoticz

Now I likt to send same Json using Arduino.
I used next code but it does not work.
My Arduino UNO gets an IP# and gets connected with Domoticz but furthermore nothing happens.

Any suggestion?
Note that is quit new for me so maybe beginners fault?

#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x7D, 0x54 };
char domoticz_server[] = "84.84.64.129";
EthernetClient domoticz_client;
String data= "";
char c="";

void setup(void)
{
Serial.begin(9600);
Serial.println("zet hier iets leuks..");

// start the Ethernet connection and the server:
Serial.println("Trying to get an IP address using DHCP");

if (Ethernet.begin(mac) == 0)
{
Serial.println("Failed to configure Ethernet using DHCP");
while (true) ;
}
Serial.println();
// start listening for clients
Serial.print("server is at ");
Serial.println(Ethernet.localIP());
}

void loop(void)
{
data = "GET /json.htm?type=command&param=switchlight&idx=770&switchcmd=Off";
Serial.println(data);
Serial.println();

domoticz_client.stop() ;
if (domoticz_client.connect(domoticz_server,8080));
{
Serial.println("connected");
}

domoticz_client.println(data);
while (domoticz_client.available())
{
c = domoticz_client.read();
Serial.print(c);
domoticz_client.println();
}
domoticz_client.println("Connection: close");
domoticz_client.println();
delay(10000);
}

Now I likt to send same Json using Arduino.

That is NOT, despite json in the name, JSON data.

  if (domoticz_client.connect(domoticz_server,8080));
    {
    Serial.println("connected");
    }

And, regardless of whether you connected, or not

  domoticz_client.println(data);
  while (domoticz_client.available())
    {
    c = domoticz_client.read();
    Serial.print(c);
    domoticz_client.println();
    }
  domoticz_client.println("Connection: close");
  domoticz_client.println();

Doesn't it seem reasonable that you should only do that if you actually connected?

192.168.2.13 is IP of Domoticz

So, why are you connecting to 84.84.64.129?

If you mean that 192.168.2.13 is the IP of a client, how is the server supposed to know that?

EXACTLY how are you doing this?

From a webbrowser I can control Domoticz e.g. with:
192.168.2.13:8080 /json.htm?type=command&param=switchlight&idx=770&switchcmd=Off

Post a picture of the web browser being used to deal with that data.

PaulS,
The code is a bit fuzzy as I was experimenting and tried sending but also retrieving answers of domoticz.
Problem has been solved. It had nothing to with my basic Arduino sketch as per many examples. I overlooked a Domoticz setting which allows sending commands from internal network without also sending username and password.
Anyway thanks for yr time to review my problem.
KR
-Bart