Web Development with Visual FoxPro
REST Header Question
Gravatar is a globally recognized avatar based on your email address. REST Header Question
  Steve
  All
  Jul 18, 2017 @ 10:53am

Hi All,
A couple of questions about REST:

  1. If I use an Accept-Language = "fr-CA" setting in the header, is the request submitted in French and is the response also in French?

  2. Is there a WWWC Tool/Utility for looking at what gets sent to the server or do I need a tool like SOAPUI?

TIA,
Steve

Gravatar is a globally recognized avatar based on your email address. re: REST Header Question
  Rick Strahl
  Steve
  Jul 18, 2017 @ 12:05pm

Accept-Language tells you what language(s) the client supports. So this means that you should send the response back using that language (if you support it). Obviously there's no requirement for that, but that's the intent.

If you need to look at HTTP requests use Fiddler. It's a proxy that intercepts requests and shows you the content.

For easier testing of REST Urls look at West Wind WebSurge or PostMan. The nice thing about WebSurge is that it doubles as a load tester and makes it easy to keep your tested URLs with your projects and source repositories.

+++ Rick ---

© 1996-2024