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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:32:11+00:00 2026-05-14T00:32:11+00:00

I have small test app: Socket socket = new Socket(jeck.ru, 80); PrintWriter pw =

  • 0

I have small test app:

Socket socket = new Socket("jeck.ru", 80);

PrintWriter pw = new PrintWriter(socket.getOutputStream(), false);
pw.println("GET /ip/ HTTP/1.1");
pw.println("Host: jeck.ru");
pw.println();
pw.flush();

BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()));

String str;
while ((str = rd.readLine()) != null) {
    System.out.println(str);
}

It`s output:

HTTP/1.1 200 OK
Date: Sat, 13 Mar 2010 22:06:51 GMT
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=5
Server  HTTP/1.1 200 OK
Date: Sat, 13 Mar 2010 22:06:51 GMT
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=5
Server: Apache
Cache-Control: max-age=0
Expires: Sat, 13 Mar 2010 22:06:51 GMT

123
<!DOCTYPE html>
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Ваш IP</title>
</head>

<body>
        <div style='text-align: center; font: 32pt Verdana;margin-top: 300px'>
        Ваш IP &#151; 94.103.87.153     </div>
</body>
</html>

0

Whence these numbers (123 an 0) takes?

  • 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-14T00:32:11+00:00Added an answer on May 14, 2026 at 12:32 am

    These numbers are a result of:

    Transfer-Encoding: chunked
    

    See Chunked transfer encoding for more details and links to specifications.

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

Sidebar

Related Questions

I am new to MVVM and have written a small app to test the
I have a small test app that parses a few RSS feeds. It all
I have a small Java test app in Netbeans where the main() class reads
I'm new to rails and building a small test app on rails3 (beta4). I
I have a small test app on Android that is meant to test tracking
I have made a small test app with a button and a UISlider. Touching
i just started building a small test app to help me learn MVC. i
I have recently starting porting a small app of mine to Facebook as a
I have a new web app that is packaged as a WAR as part
I have a small Rails 3 app (you have a listing with photos, and

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.