473,408 Members | 2,813 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,408 software developers and data experts.

How to Harvest the HTML Response from a Server?

This seems so elementary and obvious that it escapes my notice!

I'm just trying to post a simple query string with parameters (e.g.,
www.google.com?key1=value1&key2=value2) and harvest the response from the
server without using an .aspx page. How do you do that in ASP.NET?

This seems so simple it's embarassing to even ask. Thanks in advance for
any help!

Dec 4 '05 #1
3 962
Never mind. I think I found what I'm looking for. I remembered that screen
scraping examples do the same thing, so I looked it up. Here's a simple
example: http://www.csharpfriends.com/Article...?articleID=210.

If anyone has more or better to offer, I'd appreciate it immensely.
Thanks!!
"Brad" <RE**************@luminateinc.comREMOVE> wrote in message
news:c8******************************@adelphia.com ...
This seems so elementary and obvious that it escapes my notice!

I'm just trying to post a simple query string with parameters (e.g.,
www.google.com?key1=value1&key2=value2) and harvest the response from the
server without using an .aspx page. How do you do that in ASP.NET?

This seems so simple it's embarassing to even ask. Thanks in advance for
any help!

Dec 4 '05 #2
KJ
You can also use the WebClient control (System.Net.WebClient). Add it
to your toolbox. Or perhaps you can use the HttpWebRequest class and
call the GetResponse() method.

-KJ

Dec 5 '05 #3
Thanks, KJ!

I'm gonna look into the WebClient control right now. I'm open to as many
methods I can learn

Thanks again!
"KJ" <n_**********@mail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
You can also use the WebClient control (System.Net.WebClient). Add it
to your toolbox. Or perhaps you can use the HttpWebRequest class and
call the GetResponse() method.

-KJ

Dec 5 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas Scheiderich | last post by:
I am just curious as to when it is better to use straight HTML or ASP (response.write) to put out HTML code on an ASP page. For example, if I have an ASP page that is including another ASP page,...
13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
5
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
1
by: bidllc | last post by:
I'm working on a minor bug from an open source bug tracking system (bugtracket.net). It's a great app, but I don't want to bother the creator any more than I have to, so I thought I'd pose the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
6
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
1
by: MORALBAROMETER | last post by:
Hi all, I want to update MULTIPLE elements of an HTML page using Ajax. for this reason i my response is an xml document. I want to use XSL at the client side to update these elements. How can i...
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: 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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.