[drakma-devel] Problem with file uploading
Andrei Stebakov
lispercat at gmail.com
Wed Feb 14 18:56:28 UTC 2007
The headers printed are following:
GET /authentication.getToken.cp?appKey=1234 HTTP/1.1
Host: domain.com
User-Agent: Drakma/0.6.0 (CMU Common Lisp CVS release-19a
19a-release-20040728 + minimal debian patches; Linux; Linux version
2.2.20-idepci (herbert at gondolin) (gcc version 2.7.2.3) #1 Sat Apr 20
12:45:19 EST 2002; http://weitz.de/drakma/)
Accept: */*
Connection: close
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 74
Content-Type: text/xml
Date: Wed, 14 Feb 2007 18:52:53 GMT
Connection: close
POST /image.upload.cp HTTP/1.1
Host: domain.com
User-Agent: Drakma/0.6.0 (CMU Common Lisp CVS release-19a
19a-release-20040728 + minimal debian patches; Linux; Linux version
2.2.20-idepci (herbert at gondolin) (gcc version 2.7.2.3) #1 Sat Apr 20
12:45:19 EST 2002; http://weitz.de/drakma/)
Accept: */*
Connection: close
Content-Type: multipart/form-data;
boundary=----------WueD0PVGvZzxvyK3835D6znnVITzpU5zaysqeYq41qhj1Nlv79
Content-Length: 521
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 94
Content-Type: text/xml; charset=utf-8
Date: Wed, 14 Feb 2007 18:53:01 GMT
Set-Cookie: Coyote-2-c0a8017a=c0a8073f:0;Max-Age=1800;Path=/
Connection: close
((:CACHE-CONTROL . "private") (:CONTENT-LENGTH . "94")
(:CONTENT-TYPE . "text/xml; charset=utf-8")
(:DATE . "Wed, 14 Feb 2007 18:53:01 GMT")
(:SET-COOKIE . "Coyote-2-c0a8017a=c0a8073f:0;Max-Age=1800;Path=/")
(:CONNECTION . "close"))
Maybe, as you mentioned, it's that the server I am trying to upload images
to doesn't understand chunked stream?
Thank you,
Andrew
On 2/12/07, Edi Weitz <edi at agharta.de> wrote:
>
> On Mon, 12 Feb 2007 12:53:59 -0800, Chris Dean <ctdean at sokitomi.com>
> wrote:
>
> > One way to debug the system is to test against your own server. You
> > could, for example, use hunchentoot to easily create a test
> > webserver. Once you have control of the server you can debug both
> > sides of the problem.
>
> Of course, this won't help much if Hunchentoot and the /real/ server
> behave differently. (See my other email for an example - Hunchentoot
> knows how to handle chunked transfer encoding used by clients, Apache
> 1.x doesn't.)
>
> Another way to debug Drakma it to use *HEADER-STREAM* to see at least
> the headers flying by.
>
> http://weitz.de/drakma/#*header-stream*
>
> Or use something like Ethereal (or whatever it is called nowadays).
> _______________________________________________
> drakma-devel mailing list
> drakma-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20070214/ea9a3c87/attachment.html>
More information about the Drakma-devel
mailing list