Skip to content

Instantly share code, notes, and snippets.

@nozpheratu
Created October 7, 2014 19:06
Show Gist options
  • Save nozpheratu/4fbc442d1e413bc69109 to your computer and use it in GitHub Desktop.
Save nozpheratu/4fbc442d1e413bc69109 to your computer and use it in GitHub Desktop.
AgileCRM Contact PUT curl request output
curl https://mycompany.agilecrm.com/dev/api/contacts/5735995932672000 -H "Accept :application/xml" -v \
-u "test@example.com:xxxx" -d '{"tags":["foo"] }' -X PUT
* About to connect() to mycompany.agilecrm.com port 443 (#0)
* Trying 72.14.246.1... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-RC4-SHA
* Server certificate:
* subject: serialNumber=w1dh1k6AtH5pZWm6IMLHz54ayydSaJ3W; OU=GT54387286; OU=See www.rapidssl.com/resources/cps (c)13; OU=Domain Control Validated - RapidSSL(R); CN=*.agilecrm.com
* start date: 2013-08-17 06:07:21 GMT
* expire date: 2015-09-20 02:08:07 GMT
* subjectAltName: mycompany.agilecrm.com matched
* issuer: C=US; O=GeoTrust, Inc.; CN=RapidSSL CA
* SSL certificate verify ok.
* Server auth using Basic with user 'test@example.com'
> PUT /dev/api/contacts/5735995932672000 HTTP/1.1
> Authorization: Basic
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: mycompany.agilecrm.com
> Accept: */*
> Accept :application/xml
> Content-Length: 17
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 17out of 17 bytes
< HTTP/1.1 405 Method Not Allowed
< Allow: GET, DELETE, OPTIONS, HEAD
< Date: Tue, 07 Oct 2014 19:01:22 GMT
< Content-Type: text/html
< Server: Google Frontend
< Content-Length: 0
<
* Connection #0 to host mycompany.agilecrm.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment