EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSL Connection

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 07/26/2012 11:12:31
by jijo jackson (Basic support level)
Joined: 07/26/2012
Posts: 2

I am using HTTPPost sample..I need to pass a certificate and data to server and get response from it.I have added certificate to "HTTPSClient" by
HTTPSClient.ClientCertStorage = "_PKCS11CertStorage:;
and used Post method by
int k= HTTPSClient.Post("https://.....",Buffer);
but the response "k" shows "500"
Buffer is a byte array with posting data.
why this error occured?please help me..
Posted: 07/26/2012 11:25:02
by Eugene Mayevski (EldoS Corp.)

500 is Internal Server Error. You need to check server log for additional details - most likely format of the data posted is not correct, but the server can err even on valid data so it's not possible to guess anything from the information you provided.

Sincerely yours
Eugene Mayevski
Posted: 07/26/2012 11:26:53
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

500 code means 'internal server error' so its hard to say what exact is wrong. You should re-check that you post a valid data and use a proper client certificate.

You can also contact the server administrator and clarify the reason of such behavior.
Posted: 07/26/2012 11:36:25
by jijo jackson (Basic support level)
Joined: 07/26/2012
Posts: 2

I am using
HTTPSClient.RequestParameters.ContentType = "application/x-www-form-urlencoded";
Is this a problem?and how to read respond data from HTTPSClient??
Posted: 07/26/2012 11:51:23
by Eugene Mayevski (EldoS Corp.)

This content type expects that you post properly encoded form data in the buffer.
Are you doing this? Do you generally know how form data is encoded?

jijo jackson wrote:
and how to read respond data from HTTPSClient??

Via OutputStream property. You need to set this property to reference the instance of Stream class or its descendant.

Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.



Topic viewed 638 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!