kns_endpoint 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/kns_endpoint.rb +5 -0
- metadata +2 -2
data/lib/kns_endpoint.rb
CHANGED
|
@@ -109,6 +109,11 @@ module Kynetx
|
|
|
109
109
|
resp, data = http.request(req, params.to_url_params)
|
|
110
110
|
@session = parse_cookie(resp, 'SESSION_ID')
|
|
111
111
|
|
|
112
|
+
puts 'Code = ' + resp.code if $PDS_DEBUG
|
|
113
|
+
puts 'Message = ' + resp.message if $PDS_DEBUG
|
|
114
|
+
resp.each {|key, val| puts key + ' = ' + val} if $PDS_DEBUG
|
|
115
|
+
|
|
116
|
+
|
|
112
117
|
raise "Unexpected response from KNS (HTTP Error: #{resp.code} - #{resp.message})" unless resp.code == '200'
|
|
113
118
|
begin
|
|
114
119
|
kns_json = JSON.parse(data)
|