EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSL Connection

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 (Team)

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 (Team)

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 (Team)

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



Topic viewed 672 times

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


Back to top

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

Got it!