Posted on 10-27-2013 01:38 PM
Hi,
i wrote a simple script to update the JSS. now I'd like it to extend the script and download the latest version from JAMF using CURL. as a next step towards rapid deployment.
Actually, this was an exercise to practise my scripting skills
anyway who can give me some pointers in the right direction?
here's where i'm at:
ben$ curl -v --anyauth -u *"username:password"* https://my.jamfsoftware.com/productdownloads/1/9.2/4
* Adding handle: conn: 0x7fdb7b804400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fdb7b804400) send_pipe: 1, recv_pipe: 0
* About to connect() to my.jamfsoftware.com port 443 (#0)
* Trying 50.57.205.217...
* Connected to my.jamfsoftware.com (50.57.205.217) port 443 (#0)
* TLS 1.0 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate: *.jamfsoftware.com
* Server certificate: Go Daddy Secure Certification Authority
* Server certificate: Go Daddy Class 2 Certification Authority
* Server certificate: http://www.valicert.com/
> GET /productdownloads/1/9.2/4 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: my.jamfsoftware.com
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=F862C6A1CF91AAEF2C0124BB9A15F061; Domain=.jamfsoftware.com; Path=/; Secure; HttpOnly
< **Location: https://my.jamfsoftware.com/productdownloads/1/9.2/../login.html**
< Content-Length: 0
< Date: Sun, 27 Oct 2013 20:23:06 GMT
<
* Connection #0 to host my.jamfsoftware.com left intact
Looks like url is a redirect to the login page and thus never gets to the actual download.
any thoughts, pointers?
Ben