Re: [Twisted-Python] SIP protocol Via header doesn't compatible with SIP RFC3261.

2012-07-06 Thread Glyph
On Jul 6, 2012, at 12:49 PM, RuiQiang Huang wrote: > I have a patch for this. Please let me know how to submit to SVN. Search for tickets at ; if you can't find one, file a new one at an

[Twisted-Python] SIP protocol Via header doesn't compatible with SIP RFC3261.

2012-07-06 Thread RuiQiang Huang
Via header is different between RFC2543 and RFC3261. Based on RFC3261, Via header BNF is Via = ( "Via" / "v" ) HCOLON via-parm *(COMMA via-parm) via-parm = sent-protocol LWS sent-by *( SEMI via-params ) via-params= via-ttl / via-maddr / vi

Re: [Twisted-Python] Absent List-Id header?

2012-07-06 Thread Barry Warsaw
On Jul 06, 2012, at 05:04 PM, Phil Mayers wrote: >On 06/07/12 15:26, Laurens Van Houtven wrote: >> Sorry, I hope this isn't causing you any issues! > >No biggie. > >I *think* it must be messages with attachments; only your first two had >that issue, the rest of the thread has List-Id. > >It's pro

[Twisted-Python] Twisted sprint and tutorial in San Francisco

2012-07-06 Thread Ying Li
Hi all! There will be a Twisted tutorial/learning session in San Francisco on Friday, July 13th, at 7pm. Glyph will be giving the tutorial, and several developers will be on hand to help. There will be a Twisted sprint the next day, Saturday July 14th, from 10am to 9pm (or later, if folks want t

Re: [Twisted-Python] Absent List-Id header?

2012-07-06 Thread Phil Mayers
On 06/07/12 15:26, Laurens Van Houtven wrote: > Sorry, I hope this isn't causing you any issues! No biggie. I *think* it must be messages with attachments; only your first two had that issue, the rest of the thread has List-Id. It's probably mailman being dumb.

Re: [Twisted-Python] Absent List-Id header? (was: Doing HTTP file uploads)

2012-07-06 Thread Laurens Van Houtven
Sorry, I hope this isn't causing you any issues! FWIW my client is Mail.app on a fully updated Lion machine. cheers lvh On Fri, Jul 6, 2012 at 12:52 PM, Phil Mayers wrote: > On 06/07/12 09:47, Laurens Van Houtven wrote: > > Hi, > > > > I have some code that takes file uploads from browsers. I'm

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Phil Mayers
On 06/07/12 14:05, Itamar Turner-Trauring wrote: > On 07/06/2012 07:42 AM, Phil Mayers wrote: >> On 06/07/12 10:52, Laurens Van Houtven wrote: >>> Aha, okay, so that's that possible culprit off the table. Thanks! >>> >>> FWIW: Chunked transfer encoding *should* work with twisted.web.server, >>> ri

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Itamar Turner-Trauring
On 07/06/2012 07:42 AM, Phil Mayers wrote: > On 06/07/12 10:52, Laurens Van Houtven wrote: >> Aha, okay, so that's that possible culprit off the table. Thanks! >> >> FWIW: Chunked transfer encoding *should* work with twisted.web.server, right? > Good question. Unfortunately the Trac implementation

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Phil Mayers
On 06/07/12 10:52, Laurens Van Houtven wrote: > Aha, okay, so that's that possible culprit off the table. Thanks! > > FWIW: Chunked transfer encoding *should* work with twisted.web.server, right? Good question. Unfortunately the Trac implementation is running slowly so I can't browse the HEAD cod

[Twisted-Python] Absent List-Id header? (was: Doing HTTP file uploads)

2012-07-06 Thread Phil Mayers
On 06/07/12 09:47, Laurens Van Houtven wrote: > Hi, > > I have some code that takes file uploads from browsers. I'm trying to Out of curiosity, I'm seeing no "List-Id" header in the posts that lvh makes; is anyone else seeing this? The other mailman headers are there, but no List-Id. I occasion

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
Aha, okay, so that's that possible culprit off the table. Thanks! FWIW: Chunked transfer encoding *should* work with twisted.web.server, right? cheers lvh On 06 Jul 2012, at 11:39, Phil Mayers wrote: > >> some random junk in front of it (3 ASCII hex digits and a CRLF) and >> some junk at the

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Phil Mayers
>some random junk in front of it (3 ASCII hex digits and a CRLF) and >some junk at the end (CRLF and an ASCII "0", although I'm not sure if >that CRLF is junk). Wireshark reports some broken TCP packets (PCAP The hex/cr-lf is http chunked transfer format. -- Sent from my phone. Please excuse bre

Re: [Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
As an extra reference, see the behavior Firefox has when approaching the sample server (with some value for the sample field and the Axiom README as the file): ff-behavior.pcap Description: Binary data GET / HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;

[Twisted-Python] Doing HTTP file uploads (multipart forms)

2012-07-06 Thread Laurens Van Houtven
Hi, I have some code that takes file uploads from browsers. I'm trying to write a test for it, so now I need to get Twisted to do file uploads like browsers do. I think my code (not test code) essentially works, by manually trying it with a browser. I can't get the functional test part to work.