From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mbcladwell@stihie.net Newsgroups: gmane.lisp.guile.user Subject: Re: http-client port encoding failed Date: Tue, 08 Sep 2020 09:26:57 -0500 Message-ID: <20200908092657.Horde.mNitKfBrhOFNSQ9-vJQwhod@www.stihie.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15407"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Horde Application Framework 5 To: tomas@tuxteam.de, guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Sep 08 16:30:26 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFedd-0003ut-TF for guile-user@m.gmane-mx.org; Tue, 08 Sep 2020 16:30:25 +0200 Original-Received: from localhost ([::1]:43080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFedc-0003oW-Ry for guile-user@m.gmane-mx.org; Tue, 08 Sep 2020 10:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFeae-00069e-Tk for guile-user@gnu.org; Tue, 08 Sep 2020 10:27:20 -0400 Original-Received: from gateway30.websitewelcome.com ([50.116.127.1]:17325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFeab-00073v-VB for guile-user@gnu.org; Tue, 08 Sep 2020 10:27:20 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway30.websitewelcome.com (Postfix) with ESMTP id DCED2A105 for ; Tue, 8 Sep 2020 09:26:58 -0500 (CDT) Original-Received: from gator3135.hostgator.com ([50.87.144.171]) by cmsmtp with SMTP id FeaIkFVZin9FWFeaIkj2mt; Tue, 08 Sep 2020 09:26:58 -0500 X-Authority-Reason: nr=8 Original-Received: from [50.87.144.171] (port=39636 helo=gator3135.hostgator.com) by gator3135.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kFeaH-001XKw-RD; Tue, 08 Sep 2020 09:26:57 -0500 Original-Received: from [100.0.196.207] ([100.0.196.207]) by www.stihie.net (Horde Framework) with HTTPS; Tue, 08 Sep 2020 09:26:57 -0500 Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3135.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stihie.net X-BWhitelist: no X-Source-IP: 50.87.144.171 X-Source-L: Yes X-Exim-ID: 1kFeaH-001XKw-RD X-Source-Sender: (gator3135.hostgator.com) [50.87.144.171]:39636 X-Source-Auth: mbcladwell@stihie.net X-Email-Count: 1 X-Source-Cap: cGxhcGFuO3BsYXBhbjtnYXRvcjMxMzUuaG9zdGdhdG9yLmNvbQ== X-Local-Domain: yes Received-SPF: pass client-ip=50.116.127.1; envelope-from=mbcladwell@stihie.net; helo=gateway30.websitewelcome.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/08 10:27:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16888 Archived-At: Not sure I am doing exactly what you suggest but the following (based on your suggestion) seems to work: (define auth "Marjanović+Ž") (http-request (string-append "https://......&term=" auth "[auth]&retmax=20")) ===> error!! Throw to key `encoding-error' with args `("put-char" "conversion to port encoding failed" 84 # #\ć)'. (define authencode (uri-encode "Marjanović+Ž")) ===> "Marjanovi%C4%87%2B%C5%BD" (http-request (string-append "https://....&term=" authencode "[auth]&retmax=20")) ===>success!! Thanks Mortimer