[hunchentoot-devel] Library for http requests

Andrei Stebakov lispercat at gmail.com
Mon Feb 12 20:24:04 UTC 2007


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 at sokitomi.com> wrote:
>
>
> "Andrei Stebakov" <lispercat at 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 at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20070212/7e4542a0/attachment.html>


More information about the Tbnl-devel mailing list