Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 137861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:10:23+00:00 2026-05-11T07:10:23+00:00

Although i can grasp the concepts of the .Net framework and windows apps, i

  • 0

Although i can grasp the concepts of the .Net framework and windows apps, i want to create an app that will involve me simulating website clicks and getting data/response times from that page. I have not had any experience with web yet as im only a junior, could someone explain to me (in english!!) the basic concepts or with examples, the different ways and classes that could help me communicate with a website?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:10:23+00:00Added an answer on May 11, 2026 at 7:10 am

    what do you want to do?

    send a request and grab the response in a String so you can process?

    HttpWebRequest and HttpWebResponse will work

    if you need to connect through TCP/IP, FTP or other than HTTP then you need to use a more generic method

    WebRequest and WebResponse

    All the 4 methods above are in System.Net Namespace

    If you want to build a Service in the web side that you can consume, then today and in .NET please choose and work with WCF (RESTfull style).

    hope it helps you finding your way 🙂

    as an example using the HttpWebRequest and HttpWebResponse, maybe some code will help you understand better.

    case: send a response to a URL and get the response, it’s like clicking in the URL and grab all the HTML code that will be there after the click:

    private void btnSendRequest_Click(object sender, EventArgs e) {     textBox1.Text = '';     try     {         String queryString = 'user=myUser&pwd=myPassword&tel=+123456798&msg=My message';         byte[] requestByte = Encoding.Default.GetBytes(queryString);          // build our request         WebRequest webRequest = WebRequest.Create('http://www.sendFreeSMS.com/');         webRequest.Method = 'POST';         webRequest.ContentType = 'application/xml';         webRequest.ContentLength = requestByte.Length;          // create our stram to send         Stream webDataStream = webRequest.GetRequestStream();         webDataStream.Write(requestByte, 0, requestByte.Length);          // get the response from our stream         WebResponse webResponse = webRequest.GetResponse();         webDataStream = webResponse.GetResponseStream();          // convert the result into a String         StreamReader webResponseSReader = new StreamReader(webDataStream);         String responseFromServer = webResponseSReader.ReadToEnd().Replace('\n', '').Replace('\t', '');          // close everything         webResponseSReader.Close();         webResponse.Close();         webDataStream.Close();          // You now have the HTML in the responseFromServer variable, use it :)         textBox1.Text = responseFromServer;     }     catch (Exception ex)     {         textBox1.Text = ex.Message;     } } 

    The code does not work cause the URL is fictitious, but you get the idea. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Although I grasp the concept of Bitwise Operators, I can't say that I have
Sometimes when I am debugging code in Eclipse it happens that although I can
Although the Flex command-line compiler (mxmlc) can compile MXML + ActionScript files into SWFs
Although the MTASC command-line compiler can compile ActionScript class files into an SWF ,
Hoping someone can provide an answer with this, although it's not 100% programming related.
I'm at the point where I'm starting to grasp contravariance, although I'm trying to
I'm attempting to create a C++ plugin for a realtime 3D game. Although I
For a recent test, I want to 'create' a query which takes atleast 5
Although I'm specifically interested in web application information, I would also be somewhat curious
Although somewhat related to this question , I have what I think is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.