The proxy give success response for all you're other REST method.
Below the request/response at all state of the connection.
This functionnality was working for me on 0.3.0.
Request made to apache server:
POST /api/0.5/file/demo?
uid=89025136736738112173920777914035&sid=58542379044191193007770527300885&metadata[from]=mms
HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.17) Gecko/
20110422 Ubuntu/10.10 (maverick) Firefox/3.6.17
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer:
http://127.0.0.1/encre/
Content-Type: multipart/form-data;
boundary=---------------------------2103240821312348760863993048
Content-Length: 256
-----------------------------2103240821312348760863993048
Content-Disposition: form-data; name="_filename";
filename="test_upload"
Content-Type: application/octet-stream
test_upload_af83
-----------------------------2103240821312348760863993048--
Request forwarded to the proxy:
POST /api/0.5/file/demo?
uid=89025136736738112173920777914035&sid=58542379044191193007770527300885&metadata[from]=mms
HTTP/1.1
Host:
127.0.0.1:5281
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.17) Gecko/
20110422 Ubuntu/10.10 (maverick) Firefox/3.6.17
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Referer:
http://127.0.0.1/encre/
Content-Type: multipart/form-data;
boundary=---------------------------2103240821312348760863993048
Via: 1.1 localhost.localdomain
X-Forwarded-For: 127.0.0.1
X-Forwarded-Host: 127.0.0.1
X-Forwarded-Server: localhost.localdomain
Connection: Keep-Alive
Content-Length: 256
-----------------------------2103240821312348760863993048
Content-Disposition: form-data; name="_filename";
filename="test_upload"
Content-Type: application/octet-stream
test_upload_af83
-----------------------------2103240821312348760863993048--
Response sended by yaws to the proxy:
HTTP/1.1 500 Internal Server Error
Server: Yaws/1.89 Yet Another Web Server
Date: Tue, 21 Jun 2011 09:19:27 GMT
Content-Length: 28
Content-Type: application/json
{"error":"unexpected_error"}
Responses forwareded by apache proxy:
HTTP/1.1 500 Internal Server Error
Date: Tue, 21 Jun 2011 09:19:27 GMT
Server: Yaws/1.89 Yet Another Web Server
Content-Length: 28
Content-Type: application/json
Via: 1.1 localhost.localdomain
Connection: close
{"error":"unexpected_error"}
Thanks a lot
> signature.asc
> < 1 000AfficherTélécharger