Note that there are some explanatory texts on larger screens.

plurals
  1. PODo POST in AIR application
    primarykey
    data
    text
    <p>I'm trying to post data to a page that handles it for me. I always get following error, however:</p> <blockquote> <p>ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: <a href="http://localhost:8080/_user/a/ad/admin/message.create.html" rel="nofollow noreferrer">http://localhost:8080/_user/a/ad/admin/message.create.html</a>" errorID=2032] Blockquote</p> </blockquote> <p>This is the code I have so far. This works fine for GET requests.</p> <pre><code> // Object that contains data of the message to be sent var toSend:Object = { "sakai:type": "internal", "sakai:sendstate": "pending", "sakai:messagebox": "outbox", "sakai:to": "internal:"+sakaimain.gui.dgMessages.selectedItem["to"], "sakai:subject": sakaimain.gui.dgMessages.selectedItem["subject"], "sakai:body":"testreply with AIR GUI", "sakai:previousmessage" : sakaimain.gui.dgMessages.selectedItem["id"] }; // Send message // Create loader to load objects var loader:URLLoader = new URLLoader(); // Add event listeners for error and complete events loader.addEventListener(Event.COMPLETE, replyMessageCompleteHandler); loader.addEventListener(IOErrorEvent.IO_ERROR, replyMessageErrorHandler); // Create the request to be done var request:URLRequest = new URLRequest("http://localhost:8080/_user/a/ad/admin/message.create.html"); request.requestHeaders = new Array(new URLRequestHeader("x-sakai-token", sakaimain.token )); request.method = URLRequestMethod.POST; request.data = toSend; // Do the request loader.load(request); </code></pre> <p>Anyone seeing the problem here?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload