EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSL Connection

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#20898
Posted: 07/26/2012 11:12:31
by jijo jackson (Basic support level)
Joined: 07/26/2012
Posts: 2

Hi,
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..
Thank
jijo
#20899
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
#20900
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.
#20901
Posted: 07/26/2012 11:36:25
by jijo jackson (Basic support level)
Joined: 07/26/2012
Posts: 2

Hi
I am using
HTTPSClient.RequestParameters.ContentType = "application/x-www-form-urlencoded";
Is this a problem?and how to read respond data from HTTPSClient??
Thanks
#20902
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?

Quote
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: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

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