Remove needed to use Ruby for REST example scripts.

FEA: ItEr74S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-06-19 15:27:54 +02:00
parent 0eb573bc55
commit 52e318b463
5 changed files with 4 additions and 9 deletions

View file

@ -1,4 +0,0 @@
#!/usr/bin/ruby
require 'base64'
puts Base64.encode64("#{ARGV[0]}");

View file

@ -53,7 +53,7 @@ if [ "$endDate" = "" ]; then
exit 1
fi
authorization=`./base64.sh $loginName:$password`
authorization=`echo -n "$loginName:$password" | base64`
if [ "$resourceCode" = "" ]; then
serviceURIWithParams="$baseServiceURL/resourceshours/$startDate/$endDate/"

View file

@ -18,7 +18,7 @@ else
certificate=$DEMO_CERTIFICATE
fi
authorization=`./base64.sh $loginName:$password`
authorization=`echo -n "$loginName:$password" | base64`
curl -sv -X GET $certificate --header "Authorization: Basic $authorization" \
$baseServiceURL/$1 | tidy -xml -i -q -utf8

View file

@ -25,8 +25,7 @@ if [ "$service" = "" ]; then
exit 1
fi
authorization=`./base64.sh $loginName:$password`
authorization=`echo -n "$loginName:$password" | base64`
wget --no-check-certificate \
--header "Authorization: Basic $authorization" \

View file

@ -25,7 +25,7 @@ if [ "$file" = "" ]; then
exit 1
fi
authorization=`./base64.sh $loginName:$password`
authorization=`echo -n "$loginName:$password" | base64`
curl -sv -X POST $certificate -d @$file \
--header "Content-type: application/xml" \