Can a logic hook send or receive data?

I am trying to send an AJAX to a loogic hook to get the id of a newly created Case, but I am not getting an answer, also and I have been trying to do it by CURL towards another php but I am not getting any answer either, is this possible or not?.

Thanks!

Im working in Sugar CE 6.5.22.