Home > Archive > General Discussion > January 2002 > Foundations





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Foundations
Psydefx

2002-01-26, 2:19 am

I have a stumper for you:

Lets say your friend geeks out one morning and writes her own web browser in java.
She brings it over to you and asks you to try it out but explains that YOU MUST USE EXPLICIT COMMANDS FOR EVERYTHING.

You run the browser for the first time, and want to come to the forums opening page, which you usually type "examnotes.net/forums" to bring up...

What do you need to type (assume file name) in order to see the latest the page?

***Please assume that this is a run of the mill site.
Sh0tgun

2002-01-26, 2:26 am

Do you just mean:

http://www.examnotes.net/forums/index.html ? I'm just thinking "It can't be that simple." Let me know...
Psydefx

2002-01-26, 2:29 am

That won't get you there.

Hint: there's a lot of information you didn't give to your new browser with that.

Think about what has to happen to establish communication between your computer and the server.
Sh0tgun

2002-01-26, 2:32 am

Yeah, I got it.

http://www.examnotes.net:80/forums/index.html Is that going to do it?!
Psydefx

2002-01-26, 2:43 am

Good Start!!!

Now, take it to the next level....
Sh0tgun

2002-01-26, 2:55 am

As far as path goes, that's all that I can figure out. If I'm missing something, it must be really simple. That makes it harded to figure out!

If you want some HTTP command that the browser needs to go out and get the file at the path specified, I wouldn't have a clue what that was. I've never learned any.
Nicole

2002-01-26, 4:01 pm

Does said web browser have access to a DNS server?
Sh0tgun

2002-01-26, 5:46 pm

I guess in that case it would be

http://128.242.228.49:80/forums/index.html

So what else do you want Psydefx?
Psydefx

2002-01-26, 6:12 pm

Maybe the answer will be enough to develop a conversation:

get_http://www.examnotes.net.:80/forums/index.php_http v1.1

(Please excuse underscores, they are here to keep it together.)

the "get" statement - tells the browser what it's doing.

http:// - Protocol declaration

www.examnotes.net. - FQDN, Notice the root (.)

[ (FQDN)
www - host
.examnotes - domain
.net - top level domain
. - root domain
]

:80 - Port declaration

(At this point, you have created a TCP socket (protocol+IP(from FQDN)+port)

/forums - virtual directory (MS term)

/index - default file (index, default)

.php - file extension (.php,.htm,.html,.asp)

http v1.1 - Protocol version (provides some usability paramiters for web servers)


Please let me know what you think.
Sh0tgun

2002-01-26, 6:21 pm

Well, like I told you, I didn't know what the HTTP command was to get the location... So it is the same as an FTP command?

Apparently this web browser can handle Domain Name Services then, huh? I just heard that the root domain was . this week in 2151. Oh well.

I didn't know you could specify the protocol and version.
Psydefx

2002-01-26, 6:44 pm

Here is the answer (again)(I think I had some trouble with it the first time.

get_http://www.examnotes.net.:80/forums/index.php_http_v1.1

(The underscores represent spaces and are there to keep it together)

get - command instruction
http:// - protocol declaration
www - host
.examnotes - domain
.net - top level domain
. - root domain
(FQDN =host+domain+top+root= resolve ip)
:80 - Port declaration
(Socket =protocol+IP+Port)
/forums - Virtual Directory
/index - filename (index,default)
.php - file extention (.php,.htm)
http v1.1 - protocol version

There are other default availabilities, which are directed by the web server.
I was impressed to see "get" above. After deploying this little exercise in about 50 different classrooms, I have only had one other person mention it before. Cudos!!!


Psydefx

2002-01-27, 5:55 pm

Actually, the browser doesn't handle DNS, naming of a DNS server is part of the protocol stack that is on your computer if you have TCP/IP installed. Your settings here give a location for a DNS client (or resolver/any computer that has a current os) to forward a request for resolution to. This is a function of the operating system (for windows 2000: dnsapi.dll and dnsrslvr.dll files in \%system root%\system32 folder).

http://www.microsoft.com/windows2000/docs/w2kdns.doc

HTTP doesn't use any commands whatsoever. ftp://ftp.isi.edu/in-notes/rfc2774.txt. Please follow the link to see what defines HTTP and it's uses. It is a protocol, or set of standards that define communication parameters between two "entities". In our little example, the browser uses the "get" command. This would be defined by the programmer, but we should be able to assume that the programmer will use commonly associated commands when putting together something that will be used by other people.

http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1122.html
http://www.crynwr.com/crynwr/rfc1035/rfc1035.html
http://www.intac.com/~cdp/cptd-faq/
...some more links that may help in pursuit of knowledge.

Sorry about the compressed version, and the lateness of the response, getting ready to go out of town for a week, gotta setup the images, get things situated at home, etc. (Aside from the fact that I double posted and didn't notice until later. :?) Please let me know if you want more references... DON'T BUY A BOOK OF RFCS, THEY'RE FREE!!!!!! I saw one in B&N and though it was as useful as buying USA T'day from one of those boxes.

Hope this helped.

Cheers!
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net