ExtractPostData Function Size Limit
ExtractPostData Function Size Limit
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
Change the constant...
in nburn\include\constants.h
#define HTTP_RX_BUFFERSIZE (10000)
and rebuild everything...
in nburn\include\constants.h
#define HTTP_RX_BUFFERSIZE (10000)
and rebuild everything...
Re: ExtractPostData Function Size Limit
You may also condsider using multipart forms if it gets much longer.
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: ExtractPostData Function Size Limit
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.........
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.........
Re: ExtractPostData Function Size Limit
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.
If you have any questions, shoot them this way.
Dan Ciliske
Project Engineer
Netburner, Inc
Project Engineer
Netburner, Inc
Re: ExtractPostData Function Size Limit
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
Tony
- Attachments
-
- Netburner Angelscript Jquery IDE.zip
- Demo of AngelScript and JQuery IDE (MOD54415 specific)
- (1.56 MiB) Downloaded 576 times
Re: ExtractPostData Function Size Limit
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"
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"