[Extension FtpWebRequest] About proxy settings

[Extension FtpWebRequest] About proxy settings

  
Forge Component
(5)
Published on 13 Apr by Maycon Oleczinski
5 votes
Published on 13 Apr by Maycon Oleczinski

Hello,


If you set Proxy in the IE setting, executing FTP may not work correctly or error


The requested FTP command is not supported when using HTTP proxy

https://www.thecodingforums.com/threads/the-requested-ftp-command-is-not-supported-when-using-http-proxy.295721/


I think that it is necessary to put "reqFTP.Proxy = null;" in all Actions.

How is that?


Hi Yuji,

You dont need to set the "reqFTP.Proxy = null;"  explicitly in all Actions   , if you are not setting this it will by default be Null.

What exactly was your problem , is it solved?


Regards

-PJ-


Hi PRAMOD,

In IE (Internet Explorer) settings, if there is a Proxy setting

When executing "GetDirAndFileList" and "SendDataCommand" on "FTP Web Request Sample" page of OSFtpWebReq Module, the module did not work properly.

For this reason, I implemented an implementation that cloned "OSFtpWebRequest" and explicitly set "reqFTP.Proxy = null;" for all actions.

And when it was run with the modified action, it worked fine.

It is version "10.0.900.0" of Platform Server.

Regards,

Great if it solved your problem and thanks for adding this here . I used this component many time but never came across any requirement of proxy in i.e.

They can also make this change in the existing component so that there will be no need of cloning it.


Regards

-PJ-

Solution

Hi Yuji,

Most of the application running on windows picks the proxy setting from WinNet . and they respect WinINET proxy setting so when you set a proxy setting in IE then it changes in WinINet and other application picks the configuration from WinINET that is why you need to explicitly change the proxy to null in your code

https://blogs.msdn.microsoft.com/ieinternals/2013/10/11/understanding-web-proxy-configuration/

Regards

Devendra

Solution

The existing component is not written to consider the proxy setting and thats why you need to clone the component and explicitly handle it , my intention was to manage it within this component like you did by cloning the component and why it is required that is mentioned in the link shared by Devendra.


Regards

-PJ-

Hi PRAMOD and Devendra,

Thanks !!

I uploaded the extension "OSFtpWebRequest" of the modified clone.