Sending large text to php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cjbenet
Forum Newbie
Posts: 2
Joined: Thu Oct 21, 2004 2:12 pm

Sending large text to php

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

use POST method. It doesn't limit lenght of content being posted.
cjbenet
Forum Newbie
Posts: 2
Joined: Thu Oct 21, 2004 2:12 pm

Post method

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

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