EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CF1 Http methods mismatch

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 02/02/2007 05:38:33
by Bastien  (Basic support level)
Joined: 02/02/2007
Posts: 1


I am facing a strange issue trying to connect to a web server (http or https) using SSLBlackbox on the .NET Compact Framework 1.

When I try to send a POST request to the server, the actual http method which is sent is a HEAD one. I am using the (simplified) following code (which worked like a charm when I tested it against the .NET CF 2.0):

TElHTTPSClient request = new TElHTTPSClient();
request.RequestParameters.ContentType = "application/x-www-form-urlencoded";
request.SSLEnabled = false;
request.Post("http://www.anyserver.com", new byte[0]);

Tracing the request with a tool like Etheral show that the request actually sent by the .NET CF1 device is:
HEAD www.anyserver.com HTTP/1.0
while something like this was expected:
POST www.anyserver.com HTTP/1.0

By the way, it seems I have the same kind of problem when trying to send a GET request, it produces a POST query.

Did I miss something about using the TElHTTPSClient class on the .NET CF1 to send a POST request using the Post(string, byte[]) method (which would not be mandatory on the .NET CF2)?

Edit: I forgot to mention it, but I am using the latest release (SecureBlackbox for .NET, Mono and .NET CF. - Version 5.0.105 (19213 Kb) . Released on 01/27/2007)
Posted: 02/02/2007 06:10:17
by Eugene Mayevski (EldoS Corp.)

Looks like a compiler/assembly problem rather than a code problem. I will pass this to the developers via HelpDesk.

Sincerely yours
Eugene Mayevski
Posted: 02/05/2007 05:00:43
by Eugene Mayevski (EldoS Corp.)

The problem was caused by certain specifics of .NET CF 1.0. The workaround has been added and will appear in the next build update.

Sincerely yours
Eugene Mayevski



Topic viewed 2527 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!