Skip to content

delacruzjames/ssl-ma-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSL-MA Test

Details

This project is to test SSL-MA connection between two servers. This repo has both sending and receiving functions listed below:

  • Send GET calls with SSL-MA (and receive JSON as response)
  • Send POST calls with SSL-MA (and receive JSON as response)
  • Accept GET calls with SSL-MA (One endpoint returns JSON and another returns a BLOB)
  • Accept POST calls with SSL-MA (and return JSON)

Instructions

  1. Run two instances of this server
rails s -p 8080
rails s -p 8081 -P 11111
  1. Use postman and send a get request to /send_data. You can use the following options:
# Send GET JSON
{
  "url": "http://localhost:8081/api/receive_get_json",
  "step": "1a"
}

# Send GET BLOB
{
  "url": "http://localhost:8081/api/receive_post_json",
  "step": "1b"
}

# Send POST JSON
{
  "url": "http://localhost:8081/api/receive_post_json",
  "step": "2"
}
  1. Verify responses

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published