Guest User

Untitled

a guest
Apr 26th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. if _auth==SIMPLE
  2. request = Net::HTTP::Get.new(_url.path)
  3. request.basic_auth(_username, _password)
  4. httpResponse = usedConnection.request(request)
  5. else
  6. wsse = getWSSEHeader(_username, _password)
  7. # TODO creating request object according to _type
  8. httpResponse = usedConnection.get(_url.path, {"X-WSSE"=>wsse})
  9. end
Add Comment
Please, Sign In to add comment