From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith Wright Newsgroups: gmane.lisp.guile.user Subject: Re: can't get http-get w/ accept header working Date: Wed, 26 Jan 2022 15:28:57 -0500 Message-ID: <87k0emutpy.fsf@fcs22.keithdiane.us> References: <7052d15a-a4f7-bfd5-d3dc-b135049e195a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8929"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Matt Wette Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Jan 26 21:29:51 2022 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 1nCovP-0002BJ-4v for guile-user@m.gmane-mx.org; Wed, 26 Jan 2022 21:29:51 +0100 Original-Received: from localhost ([::1]:55946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCovN-0002C3-Ji for guile-user@m.gmane-mx.org; Wed, 26 Jan 2022 15:29:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCov3-0002AL-JY for guile-user@gnu.org; Wed, 26 Jan 2022 15:29:29 -0500 Original-Received: from dsl.keithdiane.us ([66.92.74.188]:51799) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCov0-0007nm-7n for guile-user@gnu.org; Wed, 26 Jan 2022 15:29:29 -0500 Original-Received: from fcs22.keithdiane.us (fcs22.keithdiane.us [192.168.1.121]) by fcs19.keithdiane.us (Postfix) with ESMTP id B5729218375; Wed, 26 Jan 2022 15:28:57 -0500 (EST) In-Reply-To: <7052d15a-a4f7-bfd5-d3dc-b135049e195a@gmail.com> (message from Matt Wette on Wed, 26 Jan 2022 11:46:27 -0800) Received-SPF: pass client-ip=66.92.74.188; envelope-from=kwright@keithdiane.us; helo=dsl.keithdiane.us 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, SPF_HELO_NONE=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.29 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:17974 Archived-At: Matt Wette writes: > Does someone have example of using the Accept header with http-get? I don't. > I'm basically calling > =C2=A0=C2=A0=C2=A0 (http-get url #:headers (list auth (parse-header 'acc= ept "*/*") ...) > > and getting back error from web/request.scm: > =C2=A0=C2=A0=C2=A0 (validate-headers (((*/*)) ... ) > > header name not a symbol (*/*) It's right about that. "*/*" is a string, not a symbol. Contrarywise, '*/* is a symbol, whether that fixes your problem, I can't say. -- Keith