EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Yet Another Connection Lost Question

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#18222
Posted: 11/17/2011 03:51:02
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

The service appears to be down today. I neglected to check if it was really up yesterday...
I will have to wait until it is up again and rerun some of the tests which might have given some false negatives due to service inavailability.

I will report back with the results of the previous tests plus this last one at that time.

Again, thank you so far.
#18242
Posted: 11/18/2011 07:13:51
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

Picking up where I left off yesterday: The server is up again. And rerunning all the tests up to now produces the same results.

I've added the content of the request to the logging. The result of only a GET is:

Code
14:06:06:770 -------------- New Call -------------
14:06:07:097 OnPreparedHeaders
14:06:07:483 OnCertificateValidate
14:06:07:498 OnCertificateValidate
14:06:07:522 OnCertificateNeededEx
14:06:07:879 OnSendData
14:06:07:895 GET /gim HTTP/1.1
                    Host: <the.host.>:443
                    User-Agent: SecureBlackbox
                    Accept-Encoding: gzip, deflate
                    Connection: Close
                    Cookie2: $Version="1"
14:06:08:164 -------------- End of Call -------------


The errorCode is still the same (100354)
#18245
Posted: 11/18/2011 07:49:58
by Ken Ivanov (EldoS Corp.)

Thanks. Sadly, but nothing positive. Could you please run another similar check for us, but prior to calling Get() please

- set HTTPVersion to hvHTTP10,
- remove the Cookie2 header from the request. This can be done by handling the OnPreparedHeaders and removing the appropriate element from the passed string list.
#18248
Posted: 11/18/2011 09:06:04
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

Still no joy:
Code
15:46:38:239 -------------- New Call -------------
15:46:38:270 OnPreparedHeaders
15:46:43:414 OnCertificateValidate
15:46:43:433 OnCertificateValidate
15:46:43:451 OnCertificateNeededEx
15:46:43:680 OnSendData
15:46:43:699 GET /gim HTTP/1.0
                    Host: <the.host.>:443
                    User-Agent: SecureBlackbox
                    Accept-Encoding: gzip, deflate
15:46:44:003 -------------- End of Call -------------

But this did give me an idea. Is it possible to manipulate the raw request in the OnSendData or elsewhere, before it is sent to the webservice. If I could, then I would be able to send a predefined request, headers and all, and see if that makes any difference.
#18249
Posted: 11/18/2011 09:44:34
by Ken Ivanov (EldoS Corp.)

You can't pass raw requests to TElHTTPSClient, but you can achieve the goal with TElSimpleSSLClient class. In its SSL-specific part this component is identical to TElHTTPSClient. The only difference from your code's point of view would be that instead of calling the Get() method, you will pass the pre-defined HTTP request to the SendData() method, and then read the response with ReceiveData().
#18250
Posted: 11/18/2011 10:01:56
by Eugene Mayevski (EldoS Corp.)

Note that response received with ReceiveData would need to be parsed for headers as well. Also you would need to handle chunked encoding. To avoid the latter, set HTTP version to 1.0 in your request.


Sincerely yours
Eugene Mayevski
#18251
Posted: 11/18/2011 10:02:55
by Eugene Mayevski (EldoS Corp.)

Also Inokentiy forgot that you can modify the prepared headers using OnPreparedHeaders event. There you can replace all of them (except the first line with command and URL, if memory serves).


Sincerely yours
Eugene Mayevski
#18252
Posted: 11/18/2011 10:31:26
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

I'll try using the TElSimpleSSLClient and see if I get any proper response from the server, keeping in mind all the caveats... I'll report back with the results.
#18361
Posted: 12/02/2011 03:43:03
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

It's been a while... But I'm back to report that using TElSimpleSSLClient produces the same results.

I've asked to be contacted by the netadmin of the offending server. Maybe he can tell me why the server doesn't like my webservice call. I'll post back with those results.
#18983
Posted: 02/09/2012 04:57:34
by Terence Sambo (Standard support level)
Joined: 02/14/2011
Posts: 16

I'm now using the latest version of Secure Blackbox as of the time of this writing (9.1.214.0). And I am pleased to say that this issue is resolved.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

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