Home: Perl Programming Help: Advanced:
LDAP vs HTTP



svbhat
stranger

Oct 30, 2001, 10:47 AM


Views: 1196
LDAP vs HTTP

Anybody can tell me whats the main difference between HTTP and LDAP except LDAP does the directory service requests?



yapp
User

Nov 2, 2001, 2:19 AM


Views: 1189
Re: LDAP vs HTTP

LDAP ????

HTTP is a 'Hypertext transfer protocol'
Usually this is the text send to a webserver when a connection is made at port 80:


Code
GET http://www.server.com/path/file.html HTTP/1.1 
User-agent: My HTTP Browser test
Accept: */*
Accep-range: bytes
Accept-language: EN
(one line blank)

More details I don't remember. The first GET line followed by two returns would be fine in most cases.
The the server replies with:

Code
200 HTTP OK 
Content-type: text/html
Content-length: 4231
Date: (THE LOCAL DATE)
Last-modified: (LAST MODIED DATE)

<HTML>
.... and more of the contents

You can try typing these lines at a shell/prompt/console

Code
telnet www.hotmail.com 80 
GET / HTTP/1.0

Hit enter twice after the GET line
Don't make typoos. A backspace or delete key will also be send to the webserver.

Hope It helps and clears things up about HTTP.