Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: PUT method - Unicode filename
mjones

From: Burlington, ON Canada
Posts: 2
Member Since: 01/16/06
posted March 3, 2006 3:44 PM

When I attempt to upload to a URL that has a unicode filename specified the resulting filename truncates the unicode characters.

Is there something I'm missing? Do I need to specify some sort of encoding scheme when performing the PUT method?

Here's the code I'm currently using:

frmMain.Http1.url = strURL
frmMain.Http1.Version = "HTTP/1.1"
frmMain.Http1.Security = httpIgnoreUnkCertAuth + httpIgnoreCertNameCheck + httpIgnoreCertDateCheck + httpAllowRedirectToHTTP + httpAllowRedirectToHTTPS + httpIgnoreCertRevocation
  
frmMain.Http1.Put bytData, Headers, strResult, ReturnHdrs
  
lngResult = frmMain.Http1.Status

As you can see, I'm not doing anything special. Any help would be greatly appreciated!

Thanks!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 7, 2006 1:05 PM

What is the value of strURL when you when you call Put?
mjones

From: Burlington, ON Canada
Posts: 2
Member Since: 01/16/06
posted March 7, 2006 1:46 PM

The strURL value is as follows:

http://relay2k3:80/exponentJobs/33200614_34_29_703ffe4f1eb-d356-4a91-88cf-d4d5960227f4/Output/UTF-マット.doc.pdf

The result code is a successful 201 (HTTP Created), however, the filename in the output folder is: UTF-

I've confirmed that the web server I'm uploading to can support unicode filenames as I've written a simple transfer app in C# that uses a WebRequest object which successfully uploads without truncating the filename.

That being said, I'm using the PowerTCP control in a Visual Basic project and I'm absolutely certain that the unicode filename is valid in the strURL variable.

Hope that info helps!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 8, 2006 3:04 PM

I have confirmed this problem but unfortunately do not have a workaround to suggest. For your reference this is issue #3695.

Please contact David Harry if you have questions regarding resolution.
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX