help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: func return web url content


From: GH
Subject: Re: func return web url content
Date: Wed, 11 May 2022 17:28:58 +0200

Tassilo Horn <tsdh@gnu.org> writes:

> Hi Alex,

hi tassilo, thanks

> (defun th/url-retrieve-contents (url)
>   (with-current-buffer (url-retrieve-synchronously url)
>     (goto-char (point-min))
>     (when (re-search-forward "\n\n" nil t)
>       (buffer-substring (point) (point-max)))))
>
> (th/url-retrieve-contents "https://gnu.cat/text/rxy.txt";)

works!



reply via email to

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