how can I make an HTTP request and get both the response content and the response headers?
Or using the new Zinc framework, something like:
| response content headers |
response := ZnClient new
url: 'http://stackoverflow.com';
get;
response.
content := response contents.
headers := response headers.
Probably the easiest is if you load WebClient
from http://www.squeaksource.com/WebClient.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With