get and post request to a https site using vb6.0

2k views Asked by At

Hi i am using MSXML2.ServerXMLHTTP40 to get and post request to a url.When i post to http site it works fine but when i post to https site it throws me an error stating the operation timed out.I am not able to get the response.Kindly help me out.Thanks in advance

2

There are 2 answers

0
vikasse On BEST ANSWER

I Found the solution I have to set the ..setproxy and setproxycredentials along and also i need to get the session id .When i used all the three it worked fine.

1
Hans Olsson On

By default HTTP will use port 80 but HTTPS uses port 443. Is it possible that you've got a firewall blocking port 443? I'd suggest trying to connect to both sites from a webbrowser to make sure it all works.