Megatest

Diff
Login

Differences From Artifact [83732ef8d7]:

To Artifact [57afe37838]:


1
2
3



(use http-client)

(print (with-input-from-request "http://localhost:8082/?foo=1" #f read-string))



|

|
>
>
>
1
2
3
4
5
6
(use regex http-client)

(print (with-input-from-request "http://localhost:8083/?foo=1" #f 
    (lambda ()
      (let ((match (string-search (regexp "<body>(.*)<.body>") (caddr (string-split (read-string) "\n")))))
	(cadr match)))))