Pages: [1]   Go Down
Author Topic: ethernet shield question's?  (Read 1318 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: February 12, 2009, 09:21:47 pm by nart_schinakow » Logged

UK
Offline Offline
Full Member
***
Karma: 1
Posts: 127
mini mini mini
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

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

London
Offline Offline
Sr. Member
****
Karma: 0
Posts: 330
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: