Go Down

Topic: ethernet shield question's? (Read 3407 times) previous topic - next topic


Feb 13, 2009, 03:20 am Last Edit: Feb 13, 2009, 03:21 am by nart_schinakow Reason: 1
can anyone help me using an ethernet shield?
the library does not explain that much! it is repeating the same example? and what is the meaning of this phrase:  
client.println("GET /search?q=arduino HTTP/1.0");
what is meant by get/ search ?
i need help if anyone has any answer please !!! thank you!!!!
i need some tutorial any link that could explain in detailes how to use this library !!!!! thank you again


I can't help much, but /search?q=arduino is what goes on the end of google.com when you search, eg. http://www.google.com/search?q=arduino will search for "arduino"

I would guess somewhere else in the example the shield connects to google.com, then GET retrieves the data you point it at and HTTP/1.0 will be the protocol you want it to use.

Not much help i know, but it might get you in the right direction :)


thank any way i just hope someone just give more details about the ethernet


Is there something specific you are trying to accomplish?  If you provide details I'm sure we can get you pointed in the right direction.

As far as GET, google provided a much better definition than I can :)



The ethernet client just sends text to the port on the server that is listening for http requests.

when you see a line like:
client.println("GET /search?q=arduino HTTP/1.0");

Its sending GET /search?q=arduino HTTP/1.0 in clear text to that port.
It represent what you would normaly see in the address bar of your browser.

The examples then send clear lines or carriage returns at set points to tell the listening web server that all of the request has been sent and you are ready to receive the results.

The results then come back in clear text with http headers followed by the html markup.

So the overall idea is to use the ethernet library to send and receive the clear text characters following the http protocols.

You then need to process the html returned to do what you want with the information.



thank you all i just got it now, i will read the links that what i need the http encoding i guess !! thank you all again

Go Up