sending data to script on web server
-
Hi everyone! In my SMS application, I need to send a list of phone numbers to a script on a web sever to be sent to the recipients Recipients will be selected from a database on the client machine. The number of recipients is over 5000. Additionally, this can rise to over 10,000 some time to come. Being a newbie in web programming, I would like to know how I can send all these phone numbers to the server. I read that GET method can send small amount of data with the POST method capable of sending large data. However, I do not know the limit to the POST method. Please help. Thanks in advance.
-
Hi everyone! In my SMS application, I need to send a list of phone numbers to a script on a web sever to be sent to the recipients Recipients will be selected from a database on the client machine. The number of recipients is over 5000. Additionally, this can rise to over 10,000 some time to come. Being a newbie in web programming, I would like to know how I can send all these phone numbers to the server. I read that GET method can send small amount of data with the POST method capable of sending large data. However, I do not know the limit to the POST method. Please help. Thanks in advance.
Looks like it is 8Mb max size for the POST method. Refer: GET vs POST[^]
Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]
-
Looks like it is 8Mb max size for the POST method. Refer: GET vs POST[^]
Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]
So in that case will it be possible to post all the phone numbers as name/pair for the post method. For 10,000 numbers and assuming 15 digits (actually be less) for each phone number, that will be (15 * 10,000 = 150,000) which is almost 150KB far less than MB. However, I read on a microsoft website (http://support.microsoft.com/kb/208427[^]) that the maximum URL length in Internet Explorer for GET and POST method is 2083. This will also be a problem since the number of characters for all numbers as well as the message will be greater than this value. Any idea on dealing with this? Thanks.
-
Hi everyone! In my SMS application, I need to send a list of phone numbers to a script on a web sever to be sent to the recipients Recipients will be selected from a database on the client machine. The number of recipients is over 5000. Additionally, this can rise to over 10,000 some time to come. Being a newbie in web programming, I would like to know how I can send all these phone numbers to the server. I read that GET method can send small amount of data with the POST method capable of sending large data. However, I do not know the limit to the POST method. Please help. Thanks in advance.
I'm a bit confused. Do I understand that the client machine will be sending up to 5,000 phone numbers to a web server which will process messages to those recipients? This is not a web page is it? How about developing a webservice and send the data to the server using that? I don't of any limits on the size of a webservice data payload. You could also batch the phone numbers into chunks of 500 and call the webservice multiple times. I just don't understand your problem. It's early monday morning and I'm just having my first cup of coffee. :cool:
-
I'm a bit confused. Do I understand that the client machine will be sending up to 5,000 phone numbers to a web server which will process messages to those recipients? This is not a web page is it? How about developing a webservice and send the data to the server using that? I don't of any limits on the size of a webservice data payload. You could also batch the phone numbers into chunks of 500 and call the webservice multiple times. I just don't understand your problem. It's early monday morning and I'm just having my first cup of coffee. :cool:
It's not a web application David. It's a database application programmed in C# WinForm that does not usually require web access. The only time web access is required is when a message needs to be sent to members enrolled on the system. Then I will need to send the phone numbers to a php script on a website that will send the message. My problem now is how I can send all the phone numbers to the script at once. In this case the script will be called only once without calling it multiple times. That's the whole problem David. Any suggestion? Thanks.
-
It's not a web application David. It's a database application programmed in C# WinForm that does not usually require web access. The only time web access is required is when a message needs to be sent to members enrolled on the system. Then I will need to send the phone numbers to a php script on a website that will send the message. My problem now is how I can send all the phone numbers to the script at once. In this case the script will be called only once without calling it multiple times. That's the whole problem David. Any suggestion? Thanks.
If the list of phone numbers contains only the phone numbers (no delimiters, no other fancy characters) and is a simple newline-delimited text file, then it should be no problem sending it to the server, even with a range of phone numbers much, much larger than what you're talking about (I've actually created a text file with 50,000 numbers, in the format: +40 123 456 789. It took 840kb). I also think you can set the maximum post size in the server's php.ini configuration file, if of course, you have access to it EDIT: Yep, found it (in php.ini file), it's this:
post_max_size = 8M
Set this to whatever you need to (even though cases when you'd have to go beyond 8MB are quite rare)
Full-fledged Java/.NET lover, full-fledged PHP hater. Full-fledged Google/Microsoft lover, full-fledged Apple hater. Full-fledged Skype lover, full-fledged YM hater.
-
Hi everyone! In my SMS application, I need to send a list of phone numbers to a script on a web sever to be sent to the recipients Recipients will be selected from a database on the client machine. The number of recipients is over 5000. Additionally, this can rise to over 10,000 some time to come. Being a newbie in web programming, I would like to know how I can send all these phone numbers to the server. I read that GET method can send small amount of data with the POST method capable of sending large data. However, I do not know the limit to the POST method. Please help. Thanks in advance.
I think you should worry about the post size last. Sounds like there is already a mechanism for submitting phone numbers to the web server, if so, you should get the API for it, and write code that packages your numbers and transmits it as per the API indicates. If there is not a mechanism, then you need to write one first, and make sure some one like me can't use the mechanism to capture your phone numbers, and then turn around and blast a phoney message to your subscribers. Your post size is the least of your worries.
-
It's not a web application David. It's a database application programmed in C# WinForm that does not usually require web access. The only time web access is required is when a message needs to be sent to members enrolled on the system. Then I will need to send the phone numbers to a php script on a website that will send the message. My problem now is how I can send all the phone numbers to the script at once. In this case the script will be called only once without calling it multiple times. That's the whole problem David. Any suggestion? Thanks.
Thank you for the clarification. I understand the problem now. Based on the replies you have received, it appears that you should be able to post the data to the web server without any problems. I'm getting the feeling that you don't have control over the website which processes the phone numbers and messages. So, is the problem that you don't know how to create a POST request for the website? Sorry if I'm not more helpful. Still trying to wrap my head around it.