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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:21:59+00:00 2026-05-25T02:21:59+00:00

I’ve been working with AkaDAV , a Twisted based WebDAV server, and I’m trying

  • 0

I’ve been working with AkaDAV, a Twisted based WebDAV server, and I’m trying to support the full litmus test suite. I’m currently stuck on the http sub-suite.

Specifically, I can run:

$ TESTS=http litmus http://localhost:8080/steder/
-> running `http':
 0. init.................. pass
 1. begin................. pass
 2. expect100............. FAIL (timeout waiting for interim response)
 3. finish................ pass

This test basically does the following:

  1. Open a socket to the WebDAV server
  2. Issue the following PUT:

    PUT /steder/litmus/expect100 HTTP/1.1
    Host: localhost:8080
    Content-Length: 100
    Expect: 100-continue

  3. waits for a response HTTP/1.1 100 Continue response.

  4. uploads 100 byte content payload

The confusing thing here is that it looks like this PUT request never makes it to Twisted. As a sanity check I’ve confirmed that PUT requests issued through curl -X PUT ... work so it seems like there’s something special about this testcase.

Any ideas what I may be doing wrong? I’m happy to share sourcecode if that helps.

EDIT:

After a little more looking around it appears that this is a known twisted.web issue: http://twistedmatrix.com/trac/ticket/4673

Does anyone know of a workaround?

  • 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-25T02:22:00+00:00Added an answer on May 25, 2026 at 2:22 am

    After some more investigation it’s pretty clear how to modify the HTTP protocol implementation to support this use case. It looks like the official fix will be in Twisted soon but in the meantime I’m using this as a workaround.

    Just include this code before you instantiate your Site (or t.w.http.HTTPFactory):

    from twisted.web import http
    
    
    class HTTPChannelWithExpectContinue(http.HTTPChannel):
        def headerReceived(self, line):
            """Just extract the header and handle Expect 100-continue:
            """
            header, data = line.split(':', 1)
            header = header.lower()
            data = data.strip()
            if (self._version=="HTTP/1.1" and
                header == 'expect' and data.lower() == '100-continue'):
                self.transport.write("HTTP/1.1 100 Continue\r\n\r\n")
            return http.HTTPChannel.headerReceived(self, line)
    
    
    http.HTTPFactory.protocol = HTTPChannelWithExpectContinue
    

    I imagine if you needed other modifications at the protocol level you could use this same method to patch them in as well. It ain’t necessarily pretty but it works for me.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.