Also, do not use text/xml. Even with a charset parameter. In a correct implementation, that will override the XML declaration of charset. With text/xml, the charset parameter must be correct. When it is omitted, the content MUST be interpreted as US-ASCII (yuk).
Instead, use a media type of application/xml, so that the server is allowed to sniff the content to discover the character encoding. For the gory details, see RFC 3023: http://www.ietf.org/rfc/rfc3023.txt wunder == Walter Underwood Search Guru, Netflix On 9/17/06 1:00 PM, "Chris Hostetter" <[EMAIL PROTECTED]> wrote: > > am i smoking crack of is post.sh mistakenly sending every doc twice in a > row? ... > > for f in $FILES; do > echo Posting file $f to $URL > curl $URL --data-binary @$f > curl $URL --data-binary @$f -H 'Content-type:text/xml; charset=utf-8' > echo > done > > > ...is there any reason not to delete that first execution of curl? > > > > -Hoss >