title: Accept HTTP Request in R shiny application
body: <p>I have a shiny app that I have made that needs to get its data from another server, i.e. the other server when the shiny app is opened sends a request to the shiny app to open the app and feed it the data that it needs.</p>
  
  <p>To simulate this I can send the following to the R shiny app when I open the app in firefox:</p>
  
  <pre><code> http://localhost:3838/benchmark-module/?transformerData=data/TransformerDataSampleForShiny.json
  </code></pre>
  
  <p>This is a simple get request that sends the sting called :
  "Transformer Data"
  with contents "data/TransformerDataSampleForShing.json" to the shiny app.</p>
  
  <p>When I use the code it works fine:</p>
  
  <pre><code>#(Abridged code, I am only showing the start of the code)
   shinyServer(function(input, output) {
   jsonFile &lt;- "data/TransformerDataSampleForShiny.json"
   JSONdata &lt;- fromJSON(jsonFile)
  </code></pre>
  
  <p>but when I want to do the exact same thing except rather than hard coding the string "data/TransformerDataSampleForShiny.json" i want to receive that string from the http request above.  How do I do this??  I have tried the code:</p>
  
  <pre><code>shinyServer(function(input, output) {
  jsonFile &lt;- input$transformerData
  JSONdata &lt;- fromJSON(jsonFile)
  </code></pre>
  
  <p>and I have also tried:</p>
  
  <pre><code>....
  jsonFile &lt;- input$TransformerData
  </code></pre>
  
  <p>but none of these have worked.</p>
  
  <p>SO the main question is, is how do I code to recieve HTTP requests? I would like to receive strings from HTTP GET requests and or JSON files from POST requests.</p>
  
  <p>Just to clarify I DONT want to send post or get requests from R.  I want to receive them.  I can't use the httr package or the httpRequest package for receiving</p>
  
  <p>Thanks so much!</p>