Print Page | Close Window

How to execute a querystring without a form

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=26112
Printed Date: 29 March 2026 at 4:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to execute a querystring without a form
Posted By: CMDevelopment
Subject: How to execute a querystring without a form
Date Posted: 15 August 2008 at 12:08am
Hi,

I'm currently developing a website for a client and they want their support system to send them an SMS Message if the ticket priority is high, so they can act on it immediately.

The way the client has setup the SMS Service is via a querystring passed to their sms gateway's API.

Code:
Example: 

http://sms.gateway.com/SMSSend?user=username&pass=password&smsto=sendingtonumber&smsfrom=sendingfromID&report=1
I need to somehow execute the above querystring for it to send an sms, and the operator will return an SMS ID number if it is successful.

I'm new to the SMS Service area so i'm not sure how to go about this.

If anyone can help me it would be greatly appreciated as it will save me subcontracting this area of the website, thus saving time and money.

thanks

Craig
CM Development UK Ltd

-------------
CM Development



Replies:
Posted By: alemcherry
Date Posted: 15 August 2008 at 2:01am
You have to make an http call to the mentioned URL from server side and pass the parameters. It is pretty simple. You can use ither microsoft built in component XMLHTTP or any thord party component for making the http connection with ASP. Take a lokk @ the article below for details.

http://www.4guysfromrolla.com/webtech/110100-1.shtml


Posted By: CMDevelopment
Date Posted: 15 August 2008 at 2:08am
cheers m8y i cracked that one earlier

'Send the message
        set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
        objHttp.open "GET", "http://sms.gateway.com/SMSSend?" & zSMSAPI, false
        objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
        objHttp.Send
            strResponseTxt = trim(objHTTP.responseText)
        Set objHTTP = nothing

Thats how i managed it, but thanks for replying :)


-------------
CM Development


Posted By: shakir
Date Posted: 10 September 2008 at 10:33am
You are using API. its based on the provider some API they will block 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net