~ubuntu-branches/ubuntu/saucy/juju-core/saucy

« back to all changes in this revision

Viewing changes to src/github.com/andelf/go-curl/examples/https.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 16:02:16 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130820160216-5yu1llasa2e2youn
Tags: 1.13.1-0ubuntu1
* New upstream release.
  - Build and install juju metadata plugin.
  - d/NEWS: Add some guidance on upgrading environments from 1.11.x
    to 1.13.x.
* d/NEWS: Add details about lack of upgrade path from juju < 1.11
  and how to interact with older juju environments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package main
2
 
 
3
 
import (
4
 
        curl "github.com/andelf/go-curl"
5
 
)
6
 
 
7
 
func main() {
8
 
        easy := curl.EasyInit()
9
 
        defer easy.Cleanup()
10
 
        if easy != nil {
11
 
                easy.Setopt(curl.OPT_URL, "https://mail.google.com/")
12
 
                // skip_peer_verification
13
 
                easy.Setopt(curl.OPT_SSL_VERIFYPEER, false) // 0 is ok
14
 
 
15
 
                easy.Perform()
16
 
        }
17
 
}