Question: I have a json URL supplied by sendgrid. All it needs to be is touched. How would I do this?

```
def suspend
  @user = User.find(params[:id])
  @user.update_attribute("suspended", true)

  # the url I need to touch => https://sendgrid.com/api/unsubscribes.add.xml?api_user=username%40website.com&api_key=secret_password&email=#{@user.email}

end

```

Answer: 
Install httpclient gem

```
HTTPClient.get("https://sendgrid.com/api/unsubscribes.add.xml?api_user=username%40website.com&api_key=secret_password&email=#{@user.email}")

```
```
require 'open-uri'
open("http://pragprog.com/") { |f| f.gets  }

```

result? just one row, not the whole page:

```
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n"

```