Hiho!
I need to update an SQL-Table
For this I use UploadFile() with a key/value pair for each row of the table.
Everything works fine unless I use more than 18 name/data values inside the formdata table.
Is there any restriction concerning the amount of name/data entries inside the formdata table of UploadFile() ?
Best regards
George
hurl and formdata Limits
- airsoftsoftwair
- Posts: 5644
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: hurl and formdata Limits
There should be no limit here. Can you post the actual code?
Re: hurl and formdata Limits
No, I can't. It's to hugh and full of variables...
I'll try to cut it down, but that may take a while...
Might there be any Limit of arguments inside the html/php conventions??
I'll try to cut it down, but that may take a while...
Might there be any Limit of arguments inside the html/php conventions??
Re: hurl and formdata Limits
Ok. A small while later....
Here is an example snippet:
This code returns a stack overflow.
Removing any key/value entry of inside p will lead to a correct function and Output "Test bestanden".
Best regards
George
Here is an example snippet:
Code: Select all
@REQUIRE "hurl"
p={ {name="t00", data="1"},
{name="t01", data="1"},
{name="t02", data="1"},
{name="t03", data="1"},
{name="t04", data="1"},
{name="t05", data="1"},
{name="t06", data="1"},
{name="t07", data="1"},
{name="t08", data="1"},
{name="t09", data="1"},
{name="t10", data="1"},
{name="t11", data="1"},
{name="t12", data="1"},
{name="t13", data="1"},
{name="t14", data="1"},
{name="t15", data="1"},
{name="t16", data="1"},
{name="t17", data="1"},
{name="func", data="test"}}
server$="http://evil.bplaced.net/test.php"
t$=UploadFile(server$,{FormData=p,Adapter="hurl"})
Debugprint(t$)
Removing any key/value entry of inside p will lead to a correct function and Output "Test bestanden".
Best regards
George
- airsoftsoftwair
- Posts: 5644
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: hurl and formdata Limits
Ok, now I see it. Looks like UploadFile() doesn't grow the stack so that everything in the table fits. It's a bug I'm afraid. Will be fixed.
Re: hurl and formdata Limits
Ok. Any plans for the release of the next update??
- airsoftsoftwair
- Posts: 5644
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: hurl and formdata Limits
Sure, when it's ready, but hopefully rather sooner than later