ExtractPostData Function Size Limit

Discussion to talk about software related topics only.
Post Reply
User avatar
tony
Posts: 49
Joined: Thu Apr 24, 2008 6:05 pm

ExtractPostData Function Size Limit

Post 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.
User avatar
pbreed
Posts: 1091
Joined: Thu Apr 24, 2008 3:58 pm

Re: ExtractPostData Function Size Limit

Post by pbreed »

Change the constant...

in nburn\include\constants.h

#define HTTP_RX_BUFFERSIZE (10000)

and rebuild everything...
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: ExtractPostData Function Size Limit

Post by dciliske »

You may also condsider using multipart forms if it gets much longer.
Dan Ciliske
Project Engineer
Netburner, Inc
User avatar
tony
Posts: 49
Joined: Thu Apr 24, 2008 6:05 pm

Re: ExtractPostData Function Size Limit

Post 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
AngelScriptIDE.png (80.42 KiB) Viewed 8989 times
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: ExtractPostData Function Size Limit

Post 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.
Dan Ciliske
Project Engineer
Netburner, Inc
User avatar
tony
Posts: 49
Joined: Thu Apr 24, 2008 6:05 pm

Re: ExtractPostData Function Size Limit

Post 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
Attachments
Netburner Angelscript Jquery IDE.zip
Demo of AngelScript and JQuery IDE (MOD54415 specific)
(1.56 MiB) Downloaded 576 times
User avatar
tony
Posts: 49
Joined: Thu Apr 24, 2008 6:05 pm

Re: ExtractPostData Function Size Limit

Post 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"
Post Reply