Last active
January 13, 2023 22:13
-
-
Save clementi/bb8fb6dcab00a9229da5 to your computer and use it in GitHub Desktop.
Ping FeedBurner with FeedBurner-Pinger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require net/http-client) | |
(require net/uri-codec) | |
(require json) | |
(define (ping url) | |
(define-values (status headers port) | |
(http-sendrecv "feedburner-pinger.herokuapp.com" | |
"/" | |
#:method "POST" | |
#:data (alist->form-urlencoded | |
(list (cons 'url url))) | |
#:headers (list "Content-Type: application/x-www-form-urlencoded"))) | |
(read-json port)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment