up vote 2 down vote favorite
share [fb]

I need to send data via http protocol (GET or POST request) from the function or trigger. Is it possible?

link|improve this question

20% accept rate
feedback

1 Answer

up vote 4 down vote accepted

You could try writing the trigger in PL/Python and use urllib2 to POST.

link|improve this answer
Hmm, it looks like a PL/Perl in untrusted mode (postgresql.org/docs/8.4/interactive/plperl-trusted.html)... Are there differences in the use of PL/Python and PL/Perl? Both of then must be runned in untrusted mode and thats all? This means that I can use the module IO::Socket or HTTP::Request without any limitations? – im4LF Jul 24 '10 at 17:37
Yes, that's all. – Frank Heikens Jul 24 '10 at 18:09
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.