[ 
https://issues.apache.org/jira/browse/AXIS2C-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Lazarski resolved AXIS2C-1612.
-------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

Users can now set a custom User-Agent by setting a property on the    
  message context:                                                      
                                                                        
  /* Create property with custom User-Agent value */                    
  axutil_property_t *ua_property = axutil_property_create(env);         
  axutil_property_set_value(ua_property, env, "MyApp/1.0 (Custom)");    
                                                                        
  /* Set on message context */                                          
  axis2_msg_ctx_set_property(msg_ctx, env, "User-Agent", ua_property);  
                                                                        
  If not set, the default "Axis2C/2.0.0" is used. 

> Custom HTTP HEADER USER AGENT
> -----------------------------
>
>                 Key: AXIS2C-1612
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1612
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: core/transport
>    Affects Versions: 1.6.0
>            Reporter: Johan Abbors
>            Priority: Minor
>              Labels: feature, patch
>             Fix For: 2.0.0
>
>         Attachments: axis2c-1.6.0_curl_useragent.patch
>
>
> I would like to be able to specify the string the will be sent as user-agent 
> with the HTTP header. Currently the value is fixed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to