title: How to use request.getHeader("Referer")
body: <p>In my current project, I have a shopping cart integrated with the main site. Now I have to create some mini sites to display the data retrieved from main site. When the user click buy now button in mini site, it should redirect to the main shopping cart. But when user click the Continue shopping button, that should be send back to the mini site page where he was browsing. Both sites will be in 2 different domain names. Can I send him back to the page where he was browsing us?</p>
  
  <pre><code>request.getHeader("Referer")
  </code></pre>
  
  <p>This will be 2 different web apps so will the <code>request.getHeader("Referer")</code> help to send him back to the page where he was browsing.</p>
  
  <p>Please send me some suggestions.</p>