Httplib request method

Discussion in 'Python' started by knguyen@megisto.com, Mar 22, 2005.

  1. Guest

    Hi,

    For some reason, httplib request() method splits the request packet
    into two packets, the first packet contains only HTTP headers, the body
    in the second packet. The first packet size is way below the MTU size.
    Is there a way I can send everything in one packet? Below is a piece of
    my code:

    self.conn.request(method, url, msg, headers)
    response = self.conn.getresponse()
    data = response.read()
    , Mar 22, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    1,995
    John Saunders
    Oct 16, 2003
  2. John J. Lee

    Re: How to upload a file with httplib?

    John J. Lee, Jun 27, 2003, in forum: Python
    Replies:
    1
    Views:
    2,193
  3. deelan
    Replies:
    0
    Views:
    1,236
    deelan
    Apr 1, 2004
  4. Replies:
    1
    Views:
    397
  5. Steven D'Aprano

    Re: Python httplib, request & putrequest

    Steven D'Aprano, Apr 9, 2013, in forum: Python
    Replies:
    0
    Views:
    117
    Steven D'Aprano
    Apr 9, 2013
Loading...

Share This Page