Hi
I am wonderng if hunchentoot or some of Edi's tools have support for http get/post requests (when I need to request some information from hunchentoot to another server). I found trivial-http, but it depends on trivial-sockets which is dead and I couldn't download the latter lib. I thought that hunchentoot would be a good place to put in such a small but useful functionality. Maybe it's already there only I couldn't find the functions.
Thank you, Andrew
"Andrei Stebakov" lispercat@gmail.com writes:
I am wonderng if hunchentoot or some of Edi's tools have support for http get/post requests (when I need to request some information from hunchentoot to another server).
Not sure exactlu what you mean, but if you're looking for an http client try Drakma -- http://weitz.de/drakma/
Cheers, Chris Dean
Thanks, Chris
This is exaclty what I need. The GET method works just fine, but I have trouble with the POST method uploading the files. Edi, here is a question (I am not sure if it's the right mailing list to ask it...) When I say (this is part of a function, so I use back-quote for parameters):
(drakma:http-request "/some/uri" :method :post :form-data t :parameters `(("Name1" . ,name1) ("Name2" . ,name2) ("File" . ,file-name))))
I got an "unknown error" from the remote host. Looks like there is problem with streaming file contents. I did a little of debugging printing the content of file buffer (in send-content function) looks like the file is being open and read, but something happens at the receiving end. I wonder how can I debug it more. When I do the same request from the FORM in Firefox everything works.
Thank you, Andrew
On 2/12/07, Chris Dean ctdean@sokitomi.com wrote:
"Andrei Stebakov" lispercat@gmail.com writes:
I am wonderng if hunchentoot or some of Edi's tools have support for http get/post requests (when I need to request some information from hunchentoot to another server).
Not sure exactlu what you mean, but if you're looking for an http client try Drakma -- http://weitz.de/drakma/
Cheers, Chris Dean _______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
On Mon, 12 Feb 2007 15:24:04 -0500, "Andrei Stebakov" lispercat@gmail.com wrote:
I am not sure if it's the right mailing list to ask it...
It isn't.