Examples of protocol RFCs implemented in Rev?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Examples of protocol RFCs implemented in Rev?

Post by edgore » Fri Jun 11, 2010 4:03 pm

I am currentky trying to figure out how to take the LDAP RFC and implement the LDAP protocol for doing simple queries as part of a Revolution application.

Turns out, reading RFCs is hard...and I have to learn the grammer that they use for specifying message formats...and figure out the encoding scheme to use too.

So, I am looking for any examples of other protocol RFCs implemented in revolution. I have Sara's POP and SMTP libraries and have begun to look into those and compare her implementation to the RFC, but I figured that it could not hurt to ask and see if anyone was aware of any other examples out there that might be work looking at.

I also figure that it's too much to hope that someone has already developed an LDAP library in Revoultion and they have been waiting until my message to share it with the world :)

Thanks,

Edwin Gore

edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Re: Examples of protocol RFCs implemented in Rev?

Post by edgore » Mon Jun 14, 2010 5:25 pm

So, after doing some research I have discovered that the server I am dealing with supports LDAP URL, which I think may make this easier. LDAP URL works by sending a url witht he LDA query info to the server (at port 389) and the server is supposed to respond by by serving up an html page with the query results (which apparently might include a referral to another server in some cases).

However, of course, the request and the response are not (apparently) handled via the same mechanisms as an http request and response, so I can't get away with using the "as-is" libUrl stuff and changing the port number - that results in an error.

So, I am assuming that the best way to handle this is to modify libUrl so that in addition to handling ftp, http and https it can handle ldap urls. I am, naturally, terrified by the thought of modifying a 60 page script that's pretty critical to Rev functioning properly that I barely understand.

So I made a back of it to play with. I would appreciate any pointers that anyone experienced with trying to do something like this might have though. Almost all of the information I can find on the internet is about how to use LDAP urls in java, or in vb, etc. where a library to handle them already exists. I haven't had any luck so far finding information on anything lower level.

Post Reply