[Slogger] Feature request: submit to custom script
Robin Smidsrød
robin at smidsrod.no
Sat Jan 6 04:08:07 PST 2007
I've recently started using slogger, and it looks great.
But as I am a bit skeptical to divulging browsing history to any third
party, I was wondering how I could go about submitting the URLs to a
custom CGI script I'm going to build myself using either PHP or
Perl/Catalyst or some other simple web application framework and run on
my own server.
Of course, this could probably just use the "custom javascript" tab, but
how about something simpler, for us "unenlightened" javascript noobs?
I tried finding a solution for doing this using "custom javascript", but
the mail archives didn't give me anything useful, unfortunately. Did I
miss some previous post?
I'm thinking about an interface almost like this:
request-url
request-method (get/post)
key1 => value1
key2 => value2
etc.
exception handler method (alert/log/whatever)
The key part is just a simple label, which directly conforms to a CGI
key, and the value is either plaintext or one of the variables available
from slogger. This variable would of course be url-encoded before it's
posted, so that no. The exception method could be there to alert you if
the url you try to submit to reports a 4xx or 5xx HTTP error.
You could of course make it even simpler, and just let the user specify
the entire URL of the request (which would imply GET only), and use some
regexp to exchange placeholder variables with the actual data from slogger.
Basically, what I'm asking for, is how to run this kind of url each time
slogger is run:
http://myloggingprogram.xxx/log?username=dilbert&passwd=xxx×tamp=url_escape($timestamp)&title=url_escape($title)&url=url_escape($url)
You probably get the intent by now...
Of course, if some of you javascript geniuses out there have the
solution for the "custom javascript" in the meantime, it would of course
be very much appreciated.
Regards,
Robin Smidsrød
More information about the Slogger
mailing list