Help with ethernet client

Hey everyone,

I'm using an ehternet shield with an uno board to send some reports to a cloud application. Here's a part of the code that i made in java to do that:

URLConnection cloudConnection = cloudServer.openConnection();

I want to know how to do the setRequestProperty method on arduino c/c+ language. Any thoughts?

Best regards

Generally, those are sent in the request header.

client.println("GET /mypage.html HTTP/1.1");
client.println("Connection: close");
client.println("Any other header stuff you want to send");
// signal end of header with a blank line
client.println("Any data you want to send");

...and the server returns stuff in it's header just about like that. The server header ends with a blank line also.