Page 1 of 1
ExtractPostData Function Size Limit
Posted: Tue Sep 25, 2012 4:47 am
by tony
Is there any limit to the size of data that can be posted using the ExtractPostData command. I'm having an issue if my post contains data with more than around 8600 characters.
Re: ExtractPostData Function Size Limit
Posted: Tue Sep 25, 2012 5:55 am
by pbreed
Change the constant...
in nburn\include\constants.h
#define HTTP_RX_BUFFERSIZE (10000)
and rebuild everything...
Re: ExtractPostData Function Size Limit
Posted: Tue Sep 25, 2012 8:25 am
by dciliske
You may also condsider using multipart forms if it gets much longer.
Re: ExtractPostData Function Size Limit
Posted: Tue Sep 25, 2012 2:01 pm
by tony
Thanks guys. I'm not sure which is the better option for my example.
I am nearly finished a proof of concept single page Javascript web application for the MOD54415. It is a self hosted AngelScript IDE that posts the script source code using AJAX then compiles and runs it on the MOD54415. It's working pretty good. I just ran into the code size limit which appears to be solved with your suggestions. I'm in between projects right now and wanted to see what the MOD54415 was capable of. It's been pretty fun. The increased memory makes applications like this possible. I will post the example when I'm done if there is some interest. This is a screen shot of the web app.........

- AngelScriptIDE.png (80.42 KiB) Viewed 8995 times
Re: ExtractPostData Function Size Limit
Posted: Wed Sep 26, 2012 2:55 pm
by dciliske
I'm... very interested in this. I've been working on a side project on and off again for the last couple months (which is partially what led to the work on porting Lua) that this could be useful for.
If you have any questions, shoot them this way.
Re: ExtractPostData Function Size Limit
Posted: Wed Sep 26, 2012 4:42 pm
by tony
I though there might be someone interested........ I'm no where near done with this project. Anyway, the attached file is my current work. The project is called PostFile and contains a mashup of some NB code from examples along with my additions. I modified the constant that Paul mentioned to 65000 but it's probably not necessary unless you submit a large script. I will continue to update the Wiki with project as I clean up the code. I'm still catching up on the NB stuff so I may have more questions for you guys. If you don't get the demo working let me know.
Tony
Re: ExtractPostData Function Size Limit
Posted: Wed Sep 26, 2012 6:03 pm
by tony
FYI,
The code editor is CodeMirror. The details can be found here:
http://codemirror.net/. It has support for Lua syntax highlighting
http://codemirror.net/mode/lua/index.html
I also used a wrapper called CodeMirror UI found here
http://www.octolabs.com/javascripts/cod ... index.html
The relevant changes that would be needed are in the file index.htm (untested)
Line 52
Replace <script src="lib/CodeMirror-2.3/mode/clike/clike.js" type="text/javascript"></script>
with <script src="lib/CodeMirror-2.3/mode/lua/lua.js" type="text/javascript"></script>
Line 102
Replace mode: "text/x-csharp"
with mode: "text/x-lua"