Question : Executing a URL without

I am trying to execute a paramaters based url from a notes agent.
I do not want the browser opening each time and do not want a UI being opened all the time as this will affect speed.
The URL will be used to update another system, in this case, an sms system. I call the url and it sends an sms, the sms system is not notes based.
See an example url below.
Code Snippet:
1:
2:
eg:
http://www.mymobileapi.com/xxxx/xxxx.aspx?type=sendparam&username=xxxxxxx&password=xxxxxx&numto=+279999999999@SMSDEV&data1=hello world?&date=29/Sep/2009&time=07:18

Answer : Executing a URL without

Oops.  I knew I should have tested this first!

You need to send a GET command, not a POST.  Here's an updated example...
1:
2:
3:
4:
5:
6:
7:
8:
Sub Example
        Dim xmlhttp As Variant
        Dim url As String
        url = "http://www.mymobileapi.com/xxxx/xxxx.aspx?type=sendparam&username=" & StrUrlEncode("", "xxxxxxx") & "&password=" & StrUrlEncode("", "xxxxxxx") & "&numto=" & StrUrlEncode("", "+279999999999@SMSDEV") & "&data1=" & StrUrlEncode("", "hello world") & "?&date=" & StrUrlEncode("", "29/Sep/2009") & "&time=" & StrUrlEncode("", "07:18")
        Set xmlhttp = CreateObject("MSXML2.XMLHTTP")
        Call xmlhttp.Open("GET", url, False)
        Call xmlhttp.Send()
End Sub
Random Solutions  
 
programming4us programming4us