bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] post-data vs post-file


From: Guillaume Baudot
Subject: [Bug-wget] post-data vs post-file
Date: Thu, 22 Dec 2011 15:36:33 +0100
User-agent: Thunderbird 2.0.0.24 (X11/20111109)

Hello there.

Using wget version "1.11.4 Red Hat modified", I noticed the folowing difference 
in behaviour between post-data and post-file options (can't tell if bug is version 
specific, RH specific or not...): the post-file adds a trailing character to file content


$wget -v -d -S --post-file='samplefile' 
sampleURL<http://sandbox.xml.agoda.com/xmlpartner/XmlService.svc/search_srv2>
[...]Content-Length: 546[...]

$wget -v -d -S --post-data="$(cat samplefile)" 
sampleURL<http://sandbox.xml.agoda.com/xmlpartner/XmlService.svc/search_srv2>
[...]Content-Length: 545[...]


Regards,
GB
--

[cid:part1.09000507.01070506@kelkoo.com]<http://www.kelkoo.co.uk/>

[cid:part2.09040304.09010005@kelkoo.com]                
[cid:part4.05070100.01030308@kelkoo.com]
Guillaume, Baudot Travel Market Engireering

address@hidden<mailto:address@hidden>
Tel: +33 4 56 09 07 65
Fax: +33 4 56 09 07 01
Address: Parc Sud Galaxie, 6 rue des Méridiens, 38130 Echirolles
[cid:part5.00080404.03050503@kelkoo.com]





________________________________
Kelkoo SAS
Société par Actions Simplifiée
Au capital de € 4.168.964,30
Siège social : 8, rue du Sentier 75002 Paris
425 093 069 RCS Paris

Ce message et les pièces jointes sont confidentiels et établis à l'attention 
exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce 
message, merci de le détruire et d'en avertir l'expéditeur.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]