From MAILER-DAEMON Tue Dec 14 13:56:40 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PSa3E-0005vy-K0
	for mharc-bug-commoncpp@gnu.org; Tue, 14 Dec 2010 13:56:40 -0500
Received: from [140.186.70.92] (port=34363 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PSa3C-0005uE-S8
	for bug-commoncpp@gnu.org; Tue, 14 Dec 2010 13:56:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joachim.wilke@gmail.com>) id 1PSa3B-000656-LH
	for bug-commoncpp@gnu.org; Tue, 14 Dec 2010 13:56:38 -0500
Received: from mail-qw0-f41.google.com ([209.85.216.41]:65396)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joachim.wilke@gmail.com>) id 1PSa3B-00064s-Hm
	for bug-commoncpp@gnu.org; Tue, 14 Dec 2010 13:56:37 -0500
Received: by qwa26 with SMTP id 26so1028033qwa.0
	for <bug-commoncpp@gnu.org>; Tue, 14 Dec 2010 10:56:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:received:date:message-id
	:subject:from:to:content-type;
	bh=RPKMi9Q6RLxBCKKrKEcmFKDk9GbK5ThYk4gsRakZ3JA=;
	b=hHOvW5/9Glbfv3W4YeHNvfuSJfApmZNqsCNLaH8nlOxveDKVienX0OoLU8tzhbNO+k
	6ta5WjLJNi8kFkQQnnelGopbEuva8JLF+FnaGBZpD+8PD9UbmUansqKPJZStZxAKI3MC
	HinpsPvBwNhn0qwxL1o7IbqOCrifoCEsyHejQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=mgXeopYD+dX+ROZ2BDt5aZWR0aKydMbIlThQnip6abOkXbXELLI2pklE3hwmB3xlnB
	4ThvILxj81sOELjp0sdXZQx1tR8DMZYx0zDUVWvLN5u2d2Sqi20jWVaYIzABGIdp7ijt
	VWCMrIQBZ0fVIhLO0Ypskv3jMgNzijbELtrB0=
MIME-Version: 1.0
Received: by 10.224.45.209 with SMTP id g17mr5653494qaf.21.1292352996240; Tue,
	14 Dec 2010 10:56:36 -0800 (PST)
Received: by 10.229.225.141 with HTTP; Tue, 14 Dec 2010 10:56:36 -0800 (PST)
Date: Tue, 14 Dec 2010 19:56:36 +0100
Message-ID: <AANLkTikXZhQSuv-X=+tJ52QwBKK7dsRukYE5yUhDYso9@mail.gmail.com>
From: Joachim Wilke <joachim.wilke@gmail.com>
To: bug-commoncpp@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: Some questions on URLStream::post()
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Dec 2010 18:56:40 -0000

Dear all,

I am currently migrating my own implementations of threads and socket
communication in libfritz++ to commoncpp. Libfritz++ is a C++ lib for
communication with AVMs Fritz!Boxes (a DSL-Router and wireless access
point broadly used in Germany) that is used in multiple applications
(e.g. Kfritz - a KDE frontend).

Migration to Thread and TCPStream classes worked flawlessly. However I
have some issues with URLStream::post()

- Doing a simple HTTP POST the library appends "\r\n" to the POST
data. The Fritz!Box webserver however gets confused by that. Consider
the following example:

  POST  /login HTTP/1.0\r\n
  Connection: close\r\n
  Content-Length: 29\r\n
  \r\n
  user=sample&password=secret\r\n

  The Fritz!Box now thinks the password is "secret\r\n". Should the
Fritz!Box be able to handle this POST request according to the HTTP
specification or is this a bug in URLStream?
  My current workaround is to append an '&' to the password, so that
the data reads 'user=sample&password=secret&\r\n'.

- Doing a multipart HTTP POST the library uses "boundry" in the
Content-Type header. Shouldn't this be "boundary"?

- Another issue with multipart HTTP POST is, that the Fritz!Box
answers such a request with "HTTP 411 - length required". Wireshark
traces showed, that the Fritz!Box responds immediately after the
header has been sent and does not wait for the post's body. Any idea
how to avoid that?

-- 
Best Regards,
Joachim.


From MAILER-DAEMON Thu Dec 30 09:17:14 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PYJJa-0005qA-Bs
	for mharc-bug-commoncpp@gnu.org; Thu, 30 Dec 2010 09:17:14 -0500
Received: from [140.186.70.92] (port=54171 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PY3gi-0002Nz-SS
	for bug-commoncpp@gnu.org; Wed, 29 Dec 2010 16:36:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbyinc@juno.com>) id 1PY3gh-00083W-QX
	for bug-commoncpp@gnu.org; Wed, 29 Dec 2010 16:36:04 -0500
Received: from outbound-mail.vgs.untd.com ([64.136.55.15]:44149)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <bbyinc@juno.com>) id 1PY3gh-000838-Gs
	for bug-commoncpp@gnu.org; Wed, 29 Dec 2010 16:36:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juno.com; s=alpha;
	t=1293658558; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; l=0;
	h=From:Date:To:Subject:Message-Id:Content-Type;
	b=ldB5MkwdgbPy/i3/hSqaOegvi6cEGjOSwHKQDw74Z93WE3senq3xthWrBhgqptUh7
	cbKCGVM42Q1bWLzyMbk8dN08qz6PL9libf2g/hNBEaQgyvhSyFaqumlgAlQYbp4xZu
	ziScbrL/QdUdv4AdDMhNaxPoHhh3pQ7RKiDhoTA8=
X-UOL-TAGLINE: true
Received: from outbound-bu1.vgs.untd.com (webmail01.vgs.untd.com
	[10.181.12.141])
	by smtpout03.vgs.untd.com with SMTP id AABGTZLNLAJU6PMJ
	for <bug-commoncpp@gnu.org> (sender <bbyinc@juno.com>);
	Wed, 29 Dec 2010 13:35:06 -0800 (PDT)
X-UNTD-OriginStamp: 51QRqgMmirEsEc3nKBYeKLfX6065H9LGgV3F0geQ+XgpZKNeYNWNnA==
Received: (from bbyinc@juno.com) 
	by webmail01.vgs.untd.com (jqueuemail) id QYCPXCFE;
	Wed, 29 Dec 2010 13:34:47 PST
Received: from [208.88.45.254] by webmail01.vgs.untd.com with HTTP:
	Wed, 29 Dec 2010 21:33:56 GMT
X-Originating-IP: [208.88.45.254]
Mime-Version: 1.0
From: "Boris." <bbyinc@juno.com>
Date: Wed, 29 Dec 2010 21:33:56 GMT
To: bug-commoncpp@gnu.org
X-Mailer: Webmail Version 4.0
Message-Id: <20101229.133356.6520.0@webmail01.vgs.untd.com>
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Type: text/plain; charset=ISO-8859-1
X-UNTD-BodySize: 969
X-ContentStamp: 9:4:3468160660
X-UNTD-Peer-Info: 10.181.12.141|webmail01.vgs.untd.com|outbound-bu1.vgs.untd.com|bbyinc@juno.com
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?)
X-Mailman-Approved-At: Thu, 30 Dec 2010 09:17:12 -0500
Subject: UDPTransmit::connect bug
X-BeenThere: bug-commoncpp@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Bug reports for Common C++ <bug-commoncpp.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-commoncpp>
List-Post: <mailto:bug-commoncpp@gnu.org>
List-Help: <mailto:bug-commoncpp-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-commoncpp>,
	<mailto:bug-commoncpp-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Dec 2010 21:36:06 -0000

Hi.

The return code check from setMulticast(...) on the lines 134 and 147 is=
 not correct, cConnect(...) is never called and transmit(...) method doe=
s not send anything because the socket is not connected.

The following is the fragment of fixed version of peer.cpp file:
 =

    134 Socket::Error UDPTransmit::connect(const IPV4Multicast &group, t=
pport_t port)
    135 {
    136         Error err;
    137         if( err =3D UDPSocket::setMulticast(true) )
    138                 return err;
    139 =

    140         return cConnect((IPV4Address)group,port);
    141 }
    142 =

    143 #ifdef  CCXX_IPV6
    144 Socket::Error UDPTransmit::connect(const IPV6Multicast &group, t=
pport_t port)
    145 {
    146         Error error;
    147         if( error =3D UDPSocket::setMulticast(true) )
    148                 return error;
    149 =

    150         return connect((IPV6Address)group,port);
    151 }
    152 #endif

Thank you.
Boris Falkovsky.



____________________________________________________________
Obama Urges Homeowners to Refinance
If you owe under $729k you probably qualify for Obama's Refi Program
http://thirdpartyoffers.juno.com/TGL3131/4d1ba98f935ca931e33st03vuc


