Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. sending data to script on web server

sending data to script on web server

Scheduled Pinned Locked Moved Web Development
databasesysadmintoolshelp
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Danzy83
    wrote on last edited by
    #1

    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.

    S D J 3 Replies Last reply
    0
    • D Danzy83

      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.

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      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[^]

      D 1 Reply Last reply
      0
      • S Sandeep Mewara

        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[^]

        D Offline
        D Offline
        Danzy83
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • D Danzy83

          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.

          D Offline
          D Offline
          David Mujica
          wrote on last edited by
          #4

          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:

          D 1 Reply Last reply
          0
          • D David Mujica

            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:

            D Offline
            D Offline
            Danzy83
            wrote on last edited by
            #5

            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.

            A D 2 Replies Last reply
            0
            • D Danzy83

              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.

              A Offline
              A Offline
              Andrei Straut
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • D Danzy83

                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.

                J Offline
                J Offline
                jkirkerx
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • D Danzy83

                  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.

                  D Offline
                  D Offline
                  David Mujica
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups