リモート サーバーで CGI スクリプトを呼び出す必要がある Windows デスクトップ アプリケーションがあります。
CGIスクリプトは以下のようになります
RemoteCGIServer/Scripts/CGIScript.exe?UserName=****&GroupName=***&.......
次のコードを実行すると、例外が発生します
String url = "RemoteCGIServer/Scripts/CGIScript.exe?UserName=****&GroupName=***&......."
WebClient wc = new WebClient();
byte[] returnData = wc.DownloadData(creditNowURI);
sOutputXML = Encoding.ASCII.GetString(returnData);
私が得る例外は
The specified path, file name, or both are too long.
The fully qualified file name must be less than 260 characters,
and the directory name must be less than 248 characters.
UserName や GroupName などをパラメータとして追加する方法はありますか?