simple URL GET
Antoni Grzymała
antoni at grzymala.info
Mon May 8 10:42:42 UTC 2023
Both DRAKMA:HTTP-REQUEST and DEX:GET with SBCL works just fine for me, it seems your Lisp environments haven’t quite got the CA infrastructure correct, as you seem to be getting certificate verification errors both in both of your Lispy requests (also see, that DEXADOR followed the redirect correctly and silently):
* (dex:get "https://www.google.com/url?q=https://planet.lisp.org&source=gmail-imap&ust=1684145115000000&usg=AOvVaw0dyFcmCQXkHNADgO05Ereo")
debugger invoked on a DEXADOR.ERROR:HTTP-REQUEST-BAD-REQUEST in thread
#<THREAD "main thread" RUNNING {70052EAB43}>:
An HTTP request to "https://planet.lisp.org" returned 400 bad request.
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.19.0</center>
</body>
</html>
> On 8 May 2023, at 12:03, paul tarvydas <paultarvydas at gmail.com> wrote:
>
>>
>> What errors, if any, do you get from these?
>
> DEXADOR:
>
> SBCL:
>
> (dex:get "https://www.google.com/url?q=https://planet.lisp.org&source=gmail-imap&ust=1684145115000000&usg=AOvVaw0dyFcmCQXkHNADgO05Ereo")
> debugger invoked on a CL+SSL:SSL-ERROR-VERIFY in thread
> ...
> ((LAMBDA (CL+SSL::OK CL+SSL::CTX) :IN "/Users/tarvydas/quicklisp/dists/quicklisp/software/cl+ssl-20211230-git/src/context.lisp") 0 #.(SB-SYS:INT-SAP #X0AF96910))
> source: (ERROR 'SSL-ERROR-VERIFY :ERROR-CODE ERROR-CODE)
> ...
>
> LW:
>
> Cl-USER 2 > (dex:get "https://www.google.com/url?q=https://planet.lisp.org&source=gmail-imap&ust=1684145115000000&usg=AOvVaw0dyFcmCQXkHNADgO05Ereo")
> cl+ssl can not locate symbol "SSL_CTX_set_default_verify_file" in the module 'libssl
> ... 20 more different "can not locate symbol" errors ...
> Error: SSL verify error: 10 X509_V_ERR_CERT_HAS_EXPIRED
>
> DrRacket 8.8:
>> (require net/http-easy)
>> (get "https://www.google.com/url?q=https://planet.lisp.org&source=gmail-imap&ust=1684145115000000&usg=AOvVaw0dyFcmCQXkHNADgO05Ereo")
> #<response>
>>
>
> Curl
> $ curl -s 'https://www.google.com/url?q=https://planet.lisp.org&source=gmail-imap&ust=1684145115000000&usg=AOvVaw0dyFcmCQXkHNADgO05Ereo’
> … a bunch of HTML text (expected result) …
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20230508/e0fdb5be/attachment-0001.html>
More information about the pro
mailing list