Submitting form server side


I'm submitting a form server side to a SMS gateway repeatedly using something like this.

Function SendDynamicForm()
      Dim oXMLHttp
      Dim sForm
      Set oXMLHttp=Server.CreateObject("MSXML2.XMLHTTP") "POST", "http://", false
      oXMLHttp.setRequestHeader "lastCached", now()
      oXMLHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
      oXMLHttp.send sForm
      SendDynamicForm = oXMLHttp.status
      Set oXMLHttp = Nothing
End Function

Sometimes this function needs to be called 1000s times during execution and there's a risk of timing out. What would you do? Any fancy asp queing scripts out there?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


It seems you may need to use an ansynchronous solution in this case (either a DB or MSMQ)
Flush the requests into a queue/db and have a seperate process(external to the ASP page - a service/exe running on the server) submit the same. Or create this function within a seperate ASP page(for processing Queue/DB and submitting the same as required) and have this refreshed within a time period specified in a Meta-Tag.

Could you provide more details on your problem, like - what you are trying to achieve here with successive calls to this function?


>>It seems you may need to use an ansynchronous solution in this case

Definitly. I use a local E-Mail server and post E-Mails to it from cgi scripts. I then have a small program which processes the E-Mail account, connects to the service provider and sends off the SMSs.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.