SOLO Experts,
The following function is intended to POST a long urlencoded string to a
PHP script:
<![CDATA[
var chkStatStr = "";
chkStatStr = '&serviceID=' + this.serviceID +
'&pipe=0&method=GET&formID=' + this.name + '&formVersion=' +
this.formVersion + '&deliverySystem=' + canvas.deliverySystem + '&usr='
+ canvas.username + '&canceled=0' + '|';
var as = new LzParam();
as.addValue( "serviceCall", chkStatStr, true);
this.postFormDS.setSrc(canvas.gateway);
this.postFormDS.setQueryType("POST");
this.postFormDS.setQueryString(as);
this.postFormDS.doRequest();
]]>
The LiveHTTPHeaders output for the POST is:
POST /lms/ws/coordinator HTTP/1.1
Host: dev.ctln.org
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1)
Gecko/20061023 SUSE/2.0-30 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
Cookie:
ATutorID=5YQ_bPPtIALnXJM2kLm8_dWkqih2t3z65-RARGr3hL92at40ngUV-cT9vnQPagDf
Referer:
http://dev.ctln.org/lps-3.3.3/fr/lzx/wrapper_dynamic_layout_localds_scorm_incremental.lzx?lzt=swf
Content-Type: application/x-www-form-urlencoded
Content-Length: 306
%5F%5Flzbc%5F%5F=1172508972774%2E05&serviceCall=%26serviceID%3D816251e4%2Dfc99%2D11da%2D9c39%2D00e0816270ef%26pipe%3D0%26method%3DGET%26formID%3Db7b3c4c6%2D6d23%2D11db%2D8c12%2D00c09f24520c%26formVersion%3D1%5F0%26deliverySystem%3D01426686%2Dfd46%2D11da%2D83b4%2D00e0816270ef%26usr%3Dtest%26canceled%3D0%7C
The POST returns nothing when Flash does the POST, but when I replay the
POST through LiveHTTPHeaders I get the expected response. Also, on the
server I am dumping the contents of the HTTP_RAW_POST_DATA array to a
file. When I POST from flash the array is empty. When I post from
LiveHTTPHeaders the array contains the body of the post.
Any thoughts?
Matt Hubbard