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

  • Home
  • SEARCH
  • 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 8306151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:16:24+00:00 2026-06-08T18:16:24+00:00

How do you know if a socket server or web server is done transmitting

  • 0

How do you know if a socket server or web server is done transmitting a HTTP GET request when using ProgressEvent.SOCKET_DATA ?
I doing my socket request with socket.writeUTFBytes(‘GET /index.php HTTP/1.1\r\n’);
But the ‘answer’ is so big that i get multiple ProgressEvent.SOCKET_DATA. How do i know how much data it is supposed to transmit to me ? Or when it’s done transmitting ?? Or even how many progressEvents i will get out of this request ? So far I’m using a timer that checks if the server is still transmitting but this isn’t a very clean way of doing things..

  • 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-06-08T18:16:25+00:00Added an answer on June 8, 2026 at 6:16 pm

    How do i know how much data it is supposed to transmit to me? Or when it’s done transmitting ??

    By reading the Content-length header if that is sent by the server, or by waiting until the server closes the connection, or by reading until you’ve encountered a last-chunk (0<CRLF><CRLF>) if chunked transfer encoding is enabled, or any of the other indications that a full response has been received.

    For simplicity, use a HTTPService or if that doesn’t fit your needs, use a library that implements an HTTP client.

    Or even how many progressEvents i will get out of this request ?

    There is no way to tell.

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

Sidebar

Related Questions

How feasible is it to translate this Ruby websocket server to PHP? http://github.com/gimite/web-socket-ruby/blob/master/lib/web_socket.rb I
You know, a web server. Right now my Socket.IO server loads from a BATCH
I'm using NodeJS+Socket.IO for simple web game. It works. Why? Here's my server.js var
I know you can’t add a class called Socket in VS2010 by doing: Right
How can I know when to close the socket of an HTTP client (I
I am using a node.js server to create a 'close to real-time' socket between
I'm running a nodejs / socket.io (v 0.7) server to push data to web
A Web Socket detects the presence of a proxy server and automatically sets up
As we know .Net has UdpClient for simple Socket usage for UDP. From MSDN:
I know that read() is a blocking call unless I make the socket non-blocking.

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.