Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Joaquin Alzola Newsgroups: comp.lang.python Subject: RE: Remote Rsponse Socket Connection Date: Fri, 11 Mar 2016 13:17:15 +0000 Lines: 20 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de hOjumSsgjLP/exYFZFW2OweVHIKxzvaX8EZkq5UIC23A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.053 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'data:': 0.07; 'socket': 0.07; 'python': 0.10; 'decode': 0.16; 'hex': 0.16; 'mixture': 0.16; 'privilege.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:b 190': 0.16; 'to:name:python-list@python.org': 0.20; 'ascii': 0.22; 'function': 0.28; 'info': 0.34; 'but': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'url:rec-html40': 0.37; 'charset:us-ascii': 0.37; 'guys': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'url:schemas': 0.40; 'url:office': 0.40; 'more': 0.63; 'contact': 0.66; 'reply': 0.68; 'subject': 0.70; 'disclose': 0.71; 'connection.': 0.76; 'à': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lebara.onmicrosoft.com; s=selector1-lebara-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zicufMupDGr6liN8idwh5/5GKyhpDMzm2eR9FROnRoQ=; b=DdtYTXupAecyS6sw1xVSzmjohF7XHHBCtSwsRJCn4kesuOSvmu+s5owytgqau5g/30mTHcLNFBFPru38T3uFBzlLMweLpZq7uqliBA0oPgJ0hHcdPV5+/P2WN6sw86QhPBu/UcLf0oDtnoAlzbfGgpAfYfNm7Cgz6lLxiH1BHy0= Thread-Topic: Remote Rsponse Socket Connection Thread-Index: AdF7K1NqKA7P0NouRA6MNYCimKm4eAAajLWg Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: python.org; dkim=none (message not signed) header.d=none;python.org; dmarc=none action=none header.from=lebara.com; x-originating-ip: [165.225.80.109] x-ms-office365-filtering-correlation-id: cfd4d3f2-1206-4088-1b98-08d349af7764 x-microsoft-exchange-diagnostics: 1; DB5PR07MB1493; 5:LIv2W4X+XgaMG1egOHyQQ/V8/gfgMWsPIaZLgmozlgc3lw4HzzsRqOhrUOweuW3VItfb9TSkQFJSOiCWc0MhYNWD1zD/rh9v8HHUkzaRUb96U7qV4t3O6VbWoIOkWUf3Pnxsbes0gVxIjlr+DP/enQ==; 24:e/RNuXtxibZ16fuAMrV4SHPyjLmby+3yOdNdm2+gdi5KNnEL4NUAUHIyhca3qIUvzx4hrXKF5rMAtHrVV5Dr+ggM/GepRI2FKWI5KadBEx0= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR07MB1493; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:DB5PR07MB1493; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB1493; x-forefront-prvs: 087894CD3C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(107886002)(11100500001)(586003)(450100001)(33656002)(54356999)(3480700003)(10400500002)(5002640100001)(110136002)(50986999)(19300405004)(5008740100001)(19625215002)(5004730100002)(81166005)(92566002)(87936001)(122556002)(86362001)(1220700001)(3660700001)(575784001)(3280700002)(1096002)(2900100001)(16236675004)(5630700001)(2351001)(2906002)(102836003)(5640700001)(19580395003)(2501003)(3846002)(77096005)(76576001)(15975445007)(74316001)(189998001)(66066001)(6116002)(5003600100002)(790700001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB1493; H:DB5PR07MB1496.eurprd07.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM X-OriginatorOrg: lebara.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2016 13:17:15.9744 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d7093539-83cd-4991-b1b3-aacef74cf097 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB1493 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104615 HI Guys I received this from a socket connection. This is the received data: Adding more info --> the response is a mixture of hex numbers + ascii >From python function --> data =3D s.recv(2048) b'\x01\x00\x00D\x00\x00\x01\x18\x00\x00\x00\x00p2E\xe1+\xe8xG\x00\x00\x01\x= 08@\x00\x00\x0bmmm\x00\x00\x00\x01(@\x00\x00\x16mmm.xxxxxx.com\x00\x00\x00\= x00\x01\x0c@\x00\x00\x0c\x00\x00\x07\xd1' How is the best way to decode such reply from server? BR Joaquin This email is confidential and may be subject to privilege. If you are not = the intended recipient, please do not copy or disclose its content but cont= act the sender immediately upon receipt.