Page 1 of 1

Sending large text to php

Posted: Thu Oct 21, 2004 2:24 pm
by cjbenet
Hi, I'm using a desktop program wich obtains some data and then executes an url to send some feed back to my site and store that information to a database example:http://mypage.php?p=c&x=u&............. ... 885|...and so on...
I'd like to send all the information at once instead to do several times the post back of the php page and send the information in parts. Is it possible? Because I read in this forum we can only send about 1782 characters with this method.
Or maybe there is another way to do it, I don't know. :oops: the thing is that I'd like to go to my web server only one time since I have all the data ready to go.

Thank you.
CJ

Posted: Thu Oct 21, 2004 2:32 pm
by Weirdan
use POST method. It doesn't limit lenght of content being posted.

Post method

Posted: Thu Oct 21, 2004 3:49 pm
by cjbenet
Since my program makes a querystring, the method I'm using is GET.
I just tell my http object to visit certain page with all the parameters, I used to work fine because a was sending a few information.
Now my requiriments are different. :cry:

If I use POST method do I need to visit a php with a form in it?

I guess there's a form to work with the http headers to send all the data, but I was trying to make this easy as I have a little time working with web.

Thank you
CJ

Posted: Thu Oct 21, 2004 6:21 pm
by feyd
you don't require a form to send a post message... [php_man]curl[/php_man] can post to any url it can find.