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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:28:50+00:00 2026-05-15T08:28:50+00:00

wget is helpful in my data mining projects. Today I try to wget the

  • 0

wget is helpful in my data mining projects. Today I try to wget the following web. Its content-type is unspecified, so the connection is hung before I terminate the process. I tried options for -T , –connect-timeout –read-timeout and –no-http-keep-alive, all failed. I try to google the answer, read the man of wget. No solution. Someone hints that issue maybe a bug for specific versions. I don’t know. I post my question here, just want to make sure someone knows it.

BTW, my os is Ubuntu 10.04 LTS Lucid Lynx for i386.

wget –connect-timeout 3 –read-time 3 –debug http://www.crvanguard.com.cn/custom/crv/sales/hb.jsp?province=101&city=1010001&shop=0&sale_type=0&pageNo=1

Here is the debug info (some Chinese in the debug info has been translated into English):

DEBUG output created by Wget 1.12 on linux-gnu.

--2010-06-17 19:18:29--  http://www.crvanguard.com.cn/custom/crv/sales/hb.jsp?province=101
Resolving host www.crvanguard.com.cn... 219.134.63.193
Caching www.crvanguard.com.cn => 219.134.63.193
Connecting www.crvanguard.com.cn|219.134.63.193|:80... connected。
Created socket 3.
Releasing 0x09b79090 (new refcount 1).

---request begin---
GET /custom/crv/sales/hb.jsp?province=101 HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: www.crvanguard.com.cn
Connection: Keep-Alive

---request end---
HTTP request sent, waiting for response... 
---response begin---
HTTP/1.1 200 OK
Date: Thu, 17 Jun 2010 11:09:10 GMT
Server: IBM_HTTP_Server
Surrogate-Control: no-store
Set-Cookie: JSESSIONID=0000I2ewO_IHpH5Kly3d8DKm6vn:-1; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Connection: close
Content-Type: text/html; charset=GBK
Content-Language: zh-CN

---response end---
200 OK

Stored cookie www.crvanguard.com.cn -1 (ANY) /   [expiry none] JSESSIONID 0000I2ewO_IHpH5Kly3d8DKm6vn:-1
Content-length: unspecified [text/html]
Saving to: “hb.jsp?province=101.1”

    [                                                                                 ] 157,669      210K/s   in 0.7s    

Closed fd 3
2010-06-17 19:18:29 (210 KB/s) - “hb.jsp?province=101.1” saved [157669]

^C
[10]   Done                    wget --connect-timeout 3 --read-time 3 --debug http://www.crvanguard.com.cn/custom/crv/sales/hb.jsp?province=101
[11]   Done                    city=1010001
[12]   Done                    shop=0
[13]   Done                    sale_type=0

It seems that wget can not successfully disconnect the link even I specified the timeout parameters and prevent http-keep-alive options.

Am I using the wrong options? Is it a bug? Thanks in advance.

  • 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-15T08:28:51+00:00Added an answer on May 15, 2026 at 8:28 am

    Your problem is that the shell interprets the ampersands in the URL. Put the URL between single quotes.

    Technically, there is a bug in the server. If the server uses HTTP 1.1, it has to specify one of these headers:

    • Content-Length: 1234
    • Transfer-Encoding: chunked

    However, wget can handle this.

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

Sidebar

Related Questions

I use: wget --no-check-certificate --http-user=user --http-password=secret --header=Content-Type:text/xml --post-file=request.xml https://mydominain.com/xml to send an xml request.
How do I receive an uploaded file from WGET in PHP? wget --post-file=file.txt --header=Content-type:
wget --output-document=/var/www/projects/meme/upload/1341233172.jpeg http://memecaptain.com/i?u=http://cdn.memegenerator.net/images/400x/528461.jpg&t1=dm&t2=cmks I used following command to download a meme but wget is
exec('wget --progress=bar http://technabob.com/blog/wp- content/uploads/2011/04/light_up_pi_symbol_1.jpg'); echo 1; output 1 ie the download is not working.I
Can I use wget to populate some forms in a web app if the
Hi I am using wget to copy a data from url and store it
when I type wget http://yahoo.com:80 on unix shell. Can some one explain me what
Currently I try to use: wget --user=xxx --password=xxx -r ftp://www.domain.com/htdocs/ But this saves output
If I try wget <url> it downloads the resolved page. But I want to
I'm using Wget to make http requests to a fresh web server. I am

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.