csantanapr commented on issue #2439: Set user agent header in API GW requests
URL: 
https://github.com/apache/incubator-openwhisk/pull/2439#issuecomment-312314410
 
 
   To capture some of the offline discussion with @mdeuser 
   
   User Agents value needs to follow spec
   https://tools.ietf.org/html/rfc2616#section-3.8
   
   ```
     product         = token ["/" product-version]
          product-version = token
   
      Examples:
   
          User-Agent: CERN-LineMode/2.15 libwww/2.17b3
          Server: Apache/0.8.4
   ```
   One idea is to have something like this that identifies that the request is 
coming from the web action, also passing some type of product-version
   ```
   "User Agent": "OpenWhisk-Routemgt/4567"
   ```
   ```
   WSK_BUILD_NUMBER = wsk property get | grep "API build number"
   ```
   ```
   wsk package update routemgt --param __ow_version $WSK_BUILD_NUMBER
   ```
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to