To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10391
10390  |  10392
Subject: 
Re: Massive LDraw file repository
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 10 Jan 2006 15:06:07 GMT
Viewed: 
2881 times
  
On Tue, Jan 10, 2006 at 02:23:56PM +0000, Jacob Sparre Andersen wrote:
Dan Boger wrote:

Using email for the transport here is just adding comlication - why
not just have a web API that the remote repos use to notify of
updates?  Could be a fancy SOAP/REST interface, or a simple POST
form.

I find it easier to make a script dump an e-mail with some text in a
mailbox than to hack a HTTP POST form.

I think HTTP is more reliable in unknown environments...  From the
server side, the HTTP method might be more complex, but keeping the
complexity on the server side is better than making complex clients.

I might not care to implement such an announcement feature in my
script, if it was too much work to do.  Sending e-mail and posting to
newsgroups is trivial to do from a POSIX script, while HTTP seems more
complicated.  Also, SMTP and NNTP are intended for pushing data, while
HTTP is intended for pulling data.  This problem seems more like a
push than a pull problem to me.

Right - the clients pushing data to the server, they're just using HTTP
to do that push.  I'll cobble up an example shell script later today to
demonstrate how to do a file push using wget.  If you're writing perl or
php apps, it should be even easier.  Of course, if you're writing in C,
you're on your own :)

--
Dan Boger
dan@peeron.com



Message has 1 Reply:
  Re: Massive LDraw file repository
 
(...) I use HTTP POST to have my work computers talk to databases and it seems very unreliable because if there is a network problem, the request dies then and there. But if I use email, the server will keep retrying. But I agree, HTTP POST is easy (...) (19 years ago, 11-Jan-06, to lugnet.cad.dev)

Message is in Reply To:
  Re: Massive LDraw file repository
 
(...) I find it easier to make a script dump an e-mail with some text in a mailbox than to hack a HTTP POST form. I might not care to implement such an announcement feature in my script, if it was too much work to do. Sending e-mail and posting to (...) (19 years ago, 10-Jan-06, to lugnet.cad.dev)

26 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR