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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:02:07+00:00 2026-05-17T22:02:07+00:00

My app currently sends GET httpwberequests and parses the content after reading the response

  • 0

My app currently sends GET httpwberequests and parses the content after reading the response stream for each request and the repeats this process over and over. I need to implement a continuous http stream which uses the same GET request but the connection stays open, from what I understand. how would I change my existing code to do this?

       Dim responseReader As StreamReader = Nothing   
        Dim Reader As StreamReader = Nothing
        Dim responseData As String = ""
        Dim webresponse As HttpWebResponse = Nothing
        Dim responseStream As Stream = Nothing
        Dim returnContent As String = Nothing
        Dim cdata As Integer = 0

         webRequest = TryCast(System.Net.WebRequest.Create(url), HttpWebRequest)

        Try

            webresponse = DirectCast(webRequest.GetResponse(), HttpWebResponse)
            responseStream = webresponse.GetResponseStream
            If webresponse.ContentEncoding.ToLower().Contains("gzip") Then
              responseStream = New GZipStream(responseStream,  CompressionMode.Decompress)
            ElseIf webresponse.ContentEncoding.ToLower().Contains("deflate") Then
                responseStream = New DeflateStream(responseStream, CompressionMode.Decompress)
            End If

            Reader = New StreamReader(responseStream, Encoding.Default)
            responseData = Reader.ReadToEnd()

        Catch
            Throw
        Finally
            webRequest.GetResponse().GetResponseStream().Close()
            Reader.close()

        End Try

        Return responseData

The streaming HTTP implementation allows one to cosume data in real time over a single persistent HTTp request. It access a data feed that continues to send activities on that response. I need to read data from the response, process it and then continue reading from the response and continue this process until the connection is closed.
Would this be like a asynchronous request instead?

  • 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-17T22:02:08+00:00Added an answer on May 17, 2026 at 10:02 pm

    This is actually one of the goals of HTML5. You can take a look at http://socket.io/ to see implementations that work for HTML4 browsers

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

Sidebar

Related Questions

Currently I am developing an app in which I want to get photo album
BUMP: This is not a dead request. I'm still hoping to get a solid
I'm currently developing an ASP.NET App and I want to get the Username &
Is it a normal occurrence for an HTTP GET Request to have a response
I am currently trying to write a very simple app that sends an object
Im currently doing a console app that has to send scheduled emails. In one
My app currently uses OAuth to communicate with the Twitter API. Back in December,
Possible Duplicate: Programmatically delete my own app Currently I am working on a iphone
We have an app that currently installs itself into 'program files\our app', and it
I'm building an app and currently I have a bunch of links that will

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.