Ethercard and sending data ?

Hello,

i'm looking for some information on how to send data to a server.

When i look at the sample software, they use stash and $f $d etc. but i can't find a proper manuals on how to use this and what is does.

what i wan't is sending a http request to my server like this.

http://192.168.1.102/emoncms/input/post.json?json={power:200}&apikey=913f55770xxxxxxxx

in the above line, the apikey is a fixed string/variable
the 200 after power is a value measured by my arduino and could be different when sending the data to the server.

how do i send this with ethercard and why do i do these things, so i and some other people could use it as a reference.
the example software is not that well documented.

thanks in advanced.

The webClient example does provide the necessary information for your task. "/foo/" is the fixed part of the URI, while "bar" is the variable part. So in your case it could be:

    int power = 200; // fill that with your value
    char buffer[30];
    snprintf(buffer, 30, "{power:%d}", power);
    ether.browseUrl(PSTR("/emoncms/input/post.json?apikey=913f55770xxxxxxxx&json="), buffer, server, my_callback);