The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Beginner Programming
|
Help with http
Discuss Help with http in the Beginner Programming forum on Dev Shed. Help with http Beginner Programming forum discussing problems and solutions for just about any issue. Experienced programmers offer their help to those just starting out.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 16th, 2012, 01:24 AM
|
|
Registered User
|
|
Join Date: Feb 2012
Posts: 3
Time spent in forums: 1 h 43 m 42 sec
Reputation Power: 0
|
|
|
Help with http
Hi all,
I need some help understanding how the second line works:
Code:
// Make a HTTP request:
client.println("GET /search?q=arduino HTTP/1.0");
client.println();
The complete program can be found at http://arduino.cc/en/Tutorial/WebClient
I have been looking up info about RFC2616 but it's not helping much.  I need simple examlpes of how I would use "GET" with it not being in a program. Would I use it in an html file or safari browser? Could I use "get" on a LAN setup and not the internet? At this point I'm not sure how to ask the question yet!
FYI, an Arduino is a SBC with an ethernet shield attached, that is programmed and able to control things.
Thanks for any help.
If this should be in another area of the forum let me know?
|

February 16th, 2012, 02:32 AM
|
|
Registered User
|
|
Join Date: Feb 2012
Posts: 3
Time spent in forums: 1 h 43 m 42 sec
Reputation Power: 0
|
|
|
Anyone?
I found some helpful video's on youtube by mikenku. His intro to wireshark is good but now I have more questions.
Last edited by Fastn8tor : February 16th, 2012 at 11:40 AM.
Reason: able to fix first message
|

February 23rd, 2012, 08:59 AM
|
 |
Sarcky
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
Once you establish a connection to a remote server, that server supports various commands.
If you open an HTTP session, the commands the server supports are limited to OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, and PATCH.
So what you're doing here is:
1) Connect to server.
2) Ask the server "I would like to GET the file `search` in your web root, with the argument q equal to "arduino". Please use HTTP/1.0 in your response."
__________________
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
|

February 28th, 2012, 04:58 PM
|
|
Registered User
|
|
Join Date: Feb 2012
Posts: 3
Time spent in forums: 1 h 43 m 42 sec
Reputation Power: 0
|
|
|
Thanks Dan for your reply.
Is it possible to GET a "file" from my LAN without actually running a server such as apache? I think that the answer is no but I'm not sure.
|

February 29th, 2012, 07:55 AM
|
 |
Sarcky
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
You need some kind of server to serve files. FTP, HTTP, SAMBA, SFTP, SSH, (etc etc unto ten generations).
You definitely absolutely need a web server to execute PHP files and return the output to you. If you just want to pull down the PHP source file without executing it, regular old file servers will work.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|