Program to Web server communication problems. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Program to Web server communication problems.

I'm using Borland Builder to try and do the following...
Problem 1.
I am trying to communicate with a web server from a normal executable windows program using an NMHTTP object. The get function works fine but I cannot get the post function to work. The other side doesn't reflect the changes in the parameters and the page is rendered in the same way as with the Get function. I update the page(an ASP file) on the server side with the posted parameters and in a browser it works fine. The problem seems to stem from the syntax of the posted data. The help says that the post data should be of the form
var2=data2, etc.
and this is what I do.

Problem 2.
The NMHTTP object does not support secure socket transfer. Is there any other way that I can do the above communication over a secure socket? I have tried to use the TCCPBrowser but I have not been able to figure out how to manipulate the TVariant and IDispatch variables that contain the data.

Would be most grateful for any info or a direction to info on the net.


Sign In or Register to comment.