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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:31:50+00:00 2026-06-08T11:31:50+00:00

I need to load any webpage using .net socket, so i can control how

  • 0

I need to load any webpage using .net socket, so i can control how i connect and receive data myself.

Note

  • Using WebClient and HttpWebRequest is not an option here, i need to
    use TcpClient and Socket.
  • I’ll be happy if i could use them(HttpWebRequest) but control the connection and data myself.
  • My real target is to just load any webpage using Socket, with my own HTTP rules.

Update

It’s possible to use WebClient and control the connection and data ourselves by running a C# HTTP proxy server and using the WebClient proxy address.
#Mentalis

  • 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-08T11:31:51+00:00Added an answer on June 8, 2026 at 11:31 am

    Chunked transfer encoding is described pretty clearly in the RFC. Each chunk exists out of:

    chunk-size[;chunk-extensions]<CRLF>
    chunk-data<CRLF>
    

    The chunk-size is sent first, which is a hexadecimal number which specifies how many bytes of chunk data to expect, optionally followed by chunk-extensions, proceeded by CRLF or \r\n. After you’ve read the specified amount of bytes, you can expect another CRLF, so you’ll have to read another two bytes.

    Then you can start reading the next chunk. If chunk-size is 0, expect to read two more CRLF's (without adding it to your buffer) and then you have received all data since a chunk of size 0 indicates a last chunk.

    Please note you cannot use ReadLine() to read chunks, since newlines in the response body (i.e. in chunk-data) will be seen as lines, so it’ll probably return before the whole chunk has been read.

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

Sidebar

Related Questions

I need to load a Model in a component to save the Data of
I need to load data into my treestore. My ajax request give me XML
I need to load a lot of data fetched from a mysql db in
I got a weird task to do. I need to load a webpage inside
I have an asp.net web page with asp:button control. I need to show two
I need to load somehow the html code of a webpage A into a
Can anyone please recommend any good Load Testing software? I have a website which
I need to dynamic loading some .NET control from DLL in runtime from C#
I need to Load RVM into a shell session as a function , so
I need to load a custom function from an extern file but without causing

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.