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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:13:23+00:00 2026-05-10T18:13:23+00:00

I am trying to POST a HTML (contained in a file) to a URL

  • 0

I am trying to POST a HTML (contained in a file) to a URL using Wget like this:

wget -O- --debug      --header=Content-Type:text/html      --post-file=index.html      http://localhost/www/encoder.ashx 

The URL to which the HTML is being posted is a Web application end-point implemented using ASP.NET. The server replies with a 100 (Continue) response and Wget simply stops dead in its tracks rather than continuing with the real response that should follow next.

Can Wget be somehow told to hanlde a 100 (Continue) response or is this some well-known limitation of the tool?

Notes:

  • I noticed that Wget never sends the Expect: 100-Continue header so technically the server should not be issuing a 100 (Continue) response.

    UPDATE: Looks like this is possible, as per §8.2.3 of RFC 2616 (Hypertext Transfer Protocol — HTTP/1.1):

    An origin server SHOULD NOT send a 100 (Continue) response if the request message does not include an Expect request-header field with the ‘100-continue’ expectation, and MUST NOT send a 100 (Continue) response if such a request comes from an HTTP/1.0 (or earlier) client. There is an exception to this rule: for compatibility with RFC 2068, a server MAY send a 100 (Continue) status in response to an HTTP/1.1 PUT or POST request that does not include an Expect request-header field with the ‘100- continue’ expectation. This exception, the purpose of which is to minimize any client processing delays associated with an undeclared wait for 100 (Continue) status, applies only to HTTP/1.1 requests, and not to requests with any other HTTP- version value.

  • cURL has no problems with such a transaction. It send an Expect: 100-Continue header and continued with 100 (Continue) response on to the real one.

For more information, here is the full debug trace of the transaction from the invocation shown above:

Setting --post-file (postfile) to index.html Setting --header (header) to Content-Type:text/html DEBUG output created by Wget 1.10 on Windows.  --13:29:17--  http://localhost/www/encoder.ashx            => `-' Resolving localhost... seconds 0.00, 127.0.0.1 Caching localhost => 127.0.0.1 Connecting to localhost|127.0.0.1|:80... seconds 0.00, connected. Created socket 296. Releasing 0x01621a10 (new refcount 1).  ---request begin--- POST /www/encoder.ashx HTTP/1.0 User-Agent: Wget/1.10 Accept: */* Host: localhost Connection: Keep-Alive Content-Type: text/html Content-Length: 30984  ---request end--- [writing POST file index.html ... done] HTTP request sent, awaiting response... ---response begin--- HTTP/1.1 100 Continue Server: ASP.NET Development Server/9.0.0.0 Date: Wed, 24 Sep 2008 11:29:17 GMT Content-Length: 0  ---response end--- 100 Continue Closed fd 296 13:29:17 ERROR 100: Continue. 
  • 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. 2026-05-10T18:13:24+00:00Added an answer on May 10, 2026 at 6:13 pm

    I looked at the source code to wget for Windows, and as far as I can tell the debug output is coming from the generic error condition when wget fails to parse the response properly. Looks like this is just a limitation of wget, so you’ll probably have to use curl or some other method to avoid encountering this issue.

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

Sidebar

Ask A Question

Stats

  • Questions 339k
  • Answers 339k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer use ./filename.sh no matter if your are in the same… May 14, 2026 at 4:29 am
  • Editorial Team
    Editorial Team added an answer What you're describing sounds like Premature Optimisation. If you're writing… May 14, 2026 at 4:29 am
  • Editorial Team
    Editorial Team added an answer You probably need template before compare: 120 const typename boost::enable_if_c<… May 14, 2026 at 4:29 am

Related Questions

I am relatively new to Silverlight development and I am trying to figure out
Sorry if this post appears to be long winded. I have a parent repeater
Ok its a continuation of my crap attempts of using client side scripts along
I am trying to implement my Edit action methods with strongly typed view which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.