hurl and formdata Limits

Discuss about plugins that don't have a dedicated forum
Post Reply
evil
Posts: 184
Joined: Mon Jun 14, 2010 1:38 pm

hurl and formdata Limits

Post by evil »

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
User avatar
airsoftsoftwair
Posts: 5644
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: hurl and formdata Limits

Post by airsoftsoftwair »

There should be no limit here. Can you post the actual code?
evil
Posts: 184
Joined: Mon Jun 14, 2010 1:38 pm

Re: hurl and formdata Limits

Post by evil »

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??
evil
Posts: 184
Joined: Mon Jun 14, 2010 1:38 pm

Re: hurl and formdata Limits

Post by evil »

Ok. A small while later....

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$)
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
User avatar
airsoftsoftwair
Posts: 5644
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: hurl and formdata Limits

Post by airsoftsoftwair »

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.
evil
Posts: 184
Joined: Mon Jun 14, 2010 1:38 pm

Re: hurl and formdata Limits

Post by evil »

Ok. Any plans for the release of the next update??
User avatar
airsoftsoftwair
Posts: 5644
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: hurl and formdata Limits

Post by airsoftsoftwair »

Sure, when it's ready, but hopefully rather sooner than later ;)
evil
Posts: 184
Joined: Mon Jun 14, 2010 1:38 pm

Re: hurl and formdata Limits

Post by evil »

Cool! Thanks!!
Post Reply