using the --trace-ascii in both cases:
bash script:
== Info: About to connect() to lmb-artifactory-server port 8081 (#0)
== Info: Trying 127.0.1.1... == Info: connected
== Info: Server auth using Basic with user 'admin'
=> Send header, 305 bytes (0x131)
0000: POST /artifactory/api/system/license HTTP/1.1
002f: Authorization: Basic YWRtaW46cGFzc3dvcmQ=
005a: User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 Ope
009a: nSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
00cb: Host: lmb-artifactory-server:8081
00ee: Accept: */*
00fb: Content-Type:application/json
011a: Content-Length: 876
012f:
=> Send data, 876 bytes (0x36c)
0000: { "licenseKey": "jb12tcBe1seX6ygwcozB4dBgY0LDP0IWUrKFAkV5ZeJFb
0040: ZfKFUJO1CHhyFgx3LqX/adeE0ane58S vIL0o+5ObDV1uXCoQneXeh5591Im0N0a
0080: dmyNO+C8r3z+i1n/CeGO4NC38gwMkTCZuiHwaDBf67cK up3BOyLdaEHnuMPKTha
00c0: kUbOfVdpkDYFnWkq6msgCRc2WnHYh5jVquwcOaqDUgaFiOlkwu4R/FOHP FnJeGR
0100: 6+k2bBaO8Q40n/R2smSddecCdTo6rs1+AC1r7/6jMnIW008ZUyLu0KAchHleMmTK
0140: 5fe6+5 j818y6P+zqhuaFAD2FhAuFmSm7R3raQpeM/eMGWWr56keRAEWFvbAz5q8
0180: HI76FW9mcmjgy0jfnTa Fnq2WCZJrPQzXDoujT1/tVOlM4aHjwXoRAYL9WL4dl+o
01c0: 6euclpG68uMni9+9/V0BQzb2YD5Qhc6Y 7uyStDZn3cOh6m6RhtbpHraraPJQ4+v
0200: zdxTPa+8sQEB67k537F02mEPBRiR1VDPmCvQV74e1wWKd XrHFD0BnQ58YqVpSw4
0240: VV3gL8cuV/Q86uRxbN2ZO3GSX/uSDFicZMtJfyCq/+4W2Nb+C61euGB+xy 81Y8/
0280: 6oskgmQykHMbUHyr0Zcq0x3qQnd2klAzvEtVQZN2QDtclttx5t6FaZWXr+JCBdJ4
02c0: SNGPBtu PCGOcQ2U9tIQnGACRbnFe8M4C82Zk3Nd8iTl988K8ZED2zTR1TacKhsF
0300: ZYJfHMIditQenFbP0n88 LQwrdgHuU9uB6tdufzEgS6mcgAwgo2hydgSf2BEDQbW
0340: H0nlSQwNZC/gjeybV3BFI8DhF6Io8DfhX LRpOLw0="}
== Info: upload completely sent off: 876out of 876 bytes
<= Recv header, 34 bytes (0x22)
0000: HTTP/1.1 503 Service Unavailable
<= Recv header, 27 bytes (0x1b)
0000: Server: Apache-Coyote/1.1
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 22 bytes (0x16)
0000: Content-Length: 2220
<= Recv header, 37 bytes (0x25)
0000: Date: Mon, 15 Dec 2014 06:45:42 GMT
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 2220 bytes (0x8ac)
0000: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:/
0040: /www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">.<html>.<head>.
0080: <title>Artifactory :: Starting Up...</title>. <meta http-equi
00c0: v="refresh" content="5"/>. .</head>.
05c0: <body>..<div class="wrapper">. <div class="panel1">. <
0600: h2>Artifactory is starting up...
.. <div class="panel
0640: 2">. <p><strong>Please wait while startup completes<s
0680: pan id="dots">.</strong></p>.. <p>This page wi
06c0: ll refresh <#> automati
0700: cally once Artifactory is. ready.. </p
0740: >.. <p class="note"><strong>Please note:</strong> Sta
0780: rtup progress information is visible in the. $ART
07c0: IFACTORY_HOME/logs/artifactory.log file.</p>. </div>.
0800: </div>.</div>...</body>.</html>
== Info: Closing connection #0
Console
== Info: About to connect() to lmb-artifactory-server port 8081 (#0)
== Info: Trying 127.0.1.1... == Info: connected
== Info: Server auth using Basic with user 'admin'
=> Send header, 305 bytes (0x131)
0000: POST /artifactory/api/system/license HTTP/1.1
002f: Authorization: Basic YWRtaW46cGFzc3dvcmQ=
005a: User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 Ope
009a: nSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
00cb: Host: lmb-artifactory-server:8081
00ee: Accept: */*
00fb: Content-Type:application/json
011a: Content-Length: 876
012f:
=> Send data, 876 bytes (0x36c)
0000: { "licenseKey": "jb12tcBe1seX6ygwcozB4dBgY0LDP0IWUrKFAkV5ZeJFb
0040: ZfKFUJO1CHhyFgx3LqX/adeE0ane58S vIL0o+5ObDV1uXCoQneXeh5591Im0N0a
0080: dmyNO+C8r3z+i1n/CeGO4NC38gwMkTCZuiHwaDBf67cK up3BOyLdaEHnuMPKTha
00c0: kUbOfVdpkDYFnWkq6msgCRc2WnHYh5jVquwcOaqDUgaFiOlkwu4R/FOHP FnJeGR
0100: 6+k2bBaO8Q40n/R2smSddecCdTo6rs1+AC1r7/6jMnIW008ZUyLu0KAchHleMmTK
0140: 5fe6+5 j818y6P+zqhuaFAD2FhAuFmSm7R3raQpeM/eMGWWr56keRAEWFvbAz5q8
0180: HI76FW9mcmjgy0jfnTa Fnq2WCZJrPQzXDoujT1/tVOlM4aHjwXoRAYL9WL4dl+o
01c0: 6euclpG68uMni9+9/V0BQzb2YD5Qhc6Y 7uyStDZn3cOh6m6RhtbpHraraPJQ4+v
0200: zdxTPa+8sQEB67k537F02mEPBRiR1VDPmCvQV74e1wWKd XrHFD0BnQ58YqVpSw4
0240: VV3gL8cuV/Q86uRxbN2ZO3GSX/uSDFicZMtJfyCq/+4W2Nb+C61euGB+xy 81Y8/
0280: 6oskgmQykHMbUHyr0Zcq0x3qQnd2klAzvEtVQZN2QDtclttx5t6FaZWXr+JCBdJ4
02c0: SNGPBtu PCGOcQ2U9tIQnGACRbnFe8M4C82Zk3Nd8iTl988K8ZED2zTR1TacKhsF
0300: ZYJfHMIditQenFbP0n88 LQwrdgHuU9uB6tdufzEgS6mcgAwgo2hydgSf2BEDQbW
0340: H0nlSQwNZC/gjeybV3BFI8DhF6Io8DfhX LRpOLw0="}
== Info: upload completely sent off: 876out of 876 bytes
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 27 bytes (0x1b)
0000: Server: Artifactory/3.4.2
<= Recv header, 63 bytes (0x3f)
0000: X-Artifactory-Id: 34275c98540caefc:7b81ce5b:14a4a25dfa3:-8000
<= Recv header, 32 bytes (0x20)
0000: Content-Type: application/json
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 37 bytes (0x25)
0000: Date: Sun, 14 Dec 2014 18:55:16 GMT
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 88 bytes (0x58)
0000: 52
0004: {. "status" : 200,. "message" : "The license has been successf
0044: ully installed.".}
<= Recv data, 5 bytes (0x5)
0000: 0
0003:
== Info: Connection #0 to host lmb-artifactory-server left intact
== Info: Closing connection #0
--
View this message in context:
http://forums.jfrog.org/Installing-license-using-REST-API-tp7580097p7580098.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users