Henry Minsky wrote:
Are you sure that PUT is not working when lzproxied=false?
I just made a simple test case
<canvas width="1200" height="80%" debug="true">
<debug fontsize="12"/>
<dataset name="edata" src="http:echo.jsp" request="true"
getresponseheaders="true" querytype="PUT"
timeout="120000"/>
</canvas>
And when fetched via a url with lzproxied=false in the query args, I see
a PUT request go out (in DHTML), using Live HTTPHeaders plugin in Firefox
to spy on the outgoing request.
Also, I have a patch I'm submitting for review which enables PUT and
DELETE methods
when running proxied through the LPS server.
Also, we just added support for setting the request headers in SOLO
DHTML data requests.
Yepp, I invoked it using the following URL (I've masked my IP addresses):
http://xx.xx.1.109:8080/lps-4.0.2/my-apps/test.lzx?lzproxied=false&lzr=dhtml
LiveHTTPHeaders says that my request is being sent via POST:
POST
/lps-4.0.2/my-apps/test.lzx?lzt=xmldata&reqtype=PUT&sendheaders=false&trimwhitespace=false&nsprefix=false&url=http%3A%2F%2Fxx.xx.1.103%2Fol%2Ftestquery.php&timeout=30000&cache=false&ccache=undefined&__lzbc__=1182135566349
HTTP/1.1
Host: xx.xx.1.109:8080
User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1)
Gecko/20061125 Firefox/2.0
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Referer:
http://xx.xx.1.109:8080/lps-4.0.2/my-apps/test.lzx?lzt=html&lzr=dhtml&lzproxied=false
Pragma: no-cache
Cache-Control: no-cache
The request, when viewed in my webserver's logs, has been transformed
(by the LPS proxy?) to GET though:
xx.xx.1.109 xx.xx.1.103 - [18/Jun/2007:10:56:54 +0800] "GET
/ol/testquery.php HTTP/1.1" 200 37
"http://xx.xx.1.109:8080/lps-4.0.2/my-apps/test.lzx?lzt=html&lzr=dhtml&lzproxied=false"
"Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1) Gecko/20061125
Firefox/2.0"
Here is the code for test.lzx:
<canvas width="800" debug="true">
<debug y="200"/>
<dataset type="http" name="testquery" querytype="PUT"
src="http://xx.xx.1.103/ol/testquery.php"/>
<view>
<inputtext width="90" name="t">weeee</inputtext>
<button> submit
<handler name="onclick">
var d = canvas.datasets.testquery;
Debug.write("sending request...");
d.doRequest();
</handler>
</button>
<simplelayout axis="x"/>
</view>
</canvas>
Anyway, I'm very grateful that you have already submitted a patch for
PUT and DELETE. Thank you very much! :)
[ simon.cpu ]
--
And /usr/games/fortune futurama says:
Were-Bender: Oh boy, I feel like a car in a candy store.