Go Down

Topic: ethernet shield question's? (Read 1 time) previous topic - next topic

Nart

Feb 13, 2009, 03:20 am Last Edit: Feb 13, 2009, 03:21 am by nart_schinakow Reason: 1
hello,
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

beige

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 :)


Nart

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

Digger450

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 :)

http://www.jmarshall.com/easy/http/http_footnotes.html#getsubmit

GordonEndersby


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.
www.google.com/search?q=arduino

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.

Gordon


Nart

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