Hi,
I'm evaluating wyBuild to update our desktop applications. As part of our testing we had issues running wyUpdate behind our company proxy. Based on the documentation I was surprised the auto proxy feature did not work so I traced the wyUpdate request via Fiddler to find our proxy server was blocking the request because it was using an IE V9 user agent.
Looking at the source I found wyUpdate -> FileDownloader.cs -> WebRequest was hard coding the user agent:((HttpWebRequest)request).UserAgent = "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 6.1; en-US; wyUpdate)";
Removing this line of code worked for our proxy. I see this line of code as meeting a specific requirement which as used in our environment causes issues with the assumption that this user agent setting is OK for all.
I would see value if you could remove this line of code and provide a command line user agent configuration option. This would provide added flexibility and compatibility for more environments not compatible with this hard coded user agent. Otherwise, I could customise the code myself and remove the hard coded user agent setting.
Can you let me know is this is a reasonable change or if there were other options to bypass the user agent setting I was not aware of.
Note: I have used the proxy configuration option to set a specific proxy server which has worked. As our desktop applications are installed on client sites this creates a lot of work if this was required for each site. The auto proxy feature is prefered.
Regards,Alain