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 544979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:42:46+00:00 2026-05-13T10:42:46+00:00

For my newest windows-application I want to create an interface that is web-based using

  • 0

For my newest windows-application I want to create an interface that is web-based using the web-browser control, and I want to make Ajax work on it. Since all the content will be loaded by the web-browser control itself I want to create a web-server that would work on a localhost port and serve my content to the web-browser when it accesses a special url, example:

http://localhost:3454

How can I create a web-server that windows will route requests to? I just need to know about the right API/WinInet commands to start receiving the requests.

  • 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. Editorial Team
    Editorial Team
    2026-05-13T10:42:46+00:00Added an answer on May 13, 2026 at 10:42 am

    Fortunate for you, .NET comes with a pretty decent Web Server built into the framework.

    Look at the HttpListener class.

    It supports both synchronous and asynchronous modes:

    The synchronous model is appropriate
    if your application should block while
    waiting for a client request and if
    you want to process only one request
    at a time. Using the synchronous
    model, call the GetContext method,
    which waits for a client to send a
    request. The method returns an
    HttpListenerContext object to you for
    processing when one occurs.

    In the more complex asynchronous
    model, your application does not block
    while waiting for requests and each
    request is processed in its own
    execution thread. Use the
    BeginGetContext method to specify an
    application-defined method to be
    called for each incoming request.
    Within that method, call the
    EndGetContext method to obtain the
    request, process it, and respond.

    This guy is great because it uses the native web server that is built into modern versions of Windows (XP SP2+ and Server 2003+).

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

Sidebar

Related Questions

I have downloaded ajax control toolkit (newest) and trying out fileupload. It's really good
I want to copy the newest file that is on a mapped network directory.
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I'm creating a Windows video capture application and am using DirectShow for capture. As
HP iPAQ 110 Classic Handheld. I made an application that uses windows mobile 6.0
I'm using IntelliJ Idea 11.1.1 (newest version as far as I know) on Windows
I have a RichEdit control in my simple application that I wish to simulate
My question is quite simple: I want to create an adobe AIR application for
In the newest version of ADT (version 20 preview 3), they say that it's
Recently our newest web designer asked me why we use ASP.NET for our website.

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.