473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make a HTTP request.

Maidenz08
Hi,

How do i make a http request in asp.net. I need to send an sms. I have an account with a provider. So all i have to do is do a http request like http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg.

I can do response.redirect("http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg" but it goes to another page out of my application.

Regards,
Alvin
Sep 6 '07 #1
3 2011
RoninZA
78
Hi,

How do i make a http request in asp.net. I need to send an sms. I have an account with a provider. So all i have to do is do a http request like http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg.

I can do response.redirect("http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg" but it goes to another page out of my application.

Regards,
Alvin
Try using the System.Web.HTTPRequest object - you shouldbe able to wangle it as follows:

System.Web.HTTPRequest request = new System.Web.HTTPRequest(string.Empty, "http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg", string.Empty);

Hope it helps!
Sep 7 '07 #2
Try using the System.Web.HTTPRequest object - you shouldbe able to wangle it as follows:

System.Web.HTTPRequest request = new System.Web.HTTPRequest(string.Empty, "http://www.provider.com/NUMBER=1234567890&MSG=Test+Msg", string.Empty);

Hope it helps!
Thanks a lot.. It worked..

Alvin
Sep 7 '07 #3
HttpRequestResponse objRequest = new HttpRequestResponse("", "http://www.provider.com/NUMBER=1234567890&MSG=Test+Msgl");

objRequest.PROXY_PORT = 0;
objRequest.HTTP_USER_NAME = "...";
objRequest.HTTP_USER_PASSWORD = "...";
objRequest.PROXY_SERVER = "...";

objRequest.SendRequest();
Sep 8 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: nicholas4 | last post by:
I need help with writing a script that returns a zip file. if(1 == $download){ // Setup headers for zip file // Return zip file // Afterwards, display previous php page } Can you help with...
1
by: Kueishiong Tu | last post by:
I have a .net window form application but I have to get data from various web sites. How do I make Http request (preferrably via post method) from a window form to get the data from those web...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
14
by: GabrielESandoval | last post by:
I need to make a registration page for a community service volleyball tournament our organization is doing. I am VERY NEW to ASP. Would the easiest way to make it be just doing it on frontpage...
6
by: divya | last post by:
I have a page name edit.asp which should expire immediately .The user cannot open this page directly he has to provide a password for entering this page.thus when the user enters edit.asp , it has...
2
by: rup | last post by:
Hello, This is my first application on socket programming in vc++. I am facing problem that how to make connection to server, & make GET/POST request by HTTP. Please help me. Its urgent.......
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
0
DressageRider
by: DressageRider | last post by:
I need your help. Desperately. Someone has to be able to fix the utter balls up I've made after dinking around in Flash for the last four days. I have no prior knowledge of anything other than...
0
by: =?Utf-8?B?YmV5YXo=?= | last post by:
I have the follwing code and cannot receive e mails sent from my contact form. Please advise how can i make it work with CDOSYS. Thank you. <% form_from = "info@nnn.com" form_to =...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.