JOHNFROG
asked on
HTTP GET/POST
I need to code a http post to request something from a remote server and receive a response. I simply want to integrate sms functioality into my website. I have an account set up with the company at the following website and all I want to do is plug into their sms functionality.
This is the website
http://www.smsglobal.com.au/api/http.html
Can anyone give me some clues on where to start? I am developing using VB and visual Studio 2008,
I just want an ascx and aspx that would connect to the above service.
This is the website
http://www.smsglobal.com.au/api/http.html
Can anyone give me some clues on where to start? I am developing using VB and visual Studio 2008,
I just want an ascx and aspx that would connect to the above service.
Use WebRequest AND WebResponse
-- OR --
Use HTTPWebRequest
-- OR --
Use HTTPWebRequest
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nice one. Actually I took that and then found
http://www.asp101.com/samples/http_post_aspx.asp which I would thoroughly recommend to anyone foloowing the solution.
http://www.asp101.com/samples/http_post_aspx.asp which I would thoroughly recommend to anyone foloowing the solution.
Dim objWebRequest As WebRequest = WebRequest.Create(strURL)
Dim objWebResponse As WebResponse = objWebRequest.GetResponse(
Dim objStream As Stream = objWebResponse.GetResponse
Dim objStreamReader As StreamReader = New StreamReader(objStream)
Dim strHTML As String = objStreamReader.ReadToEnd