Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to I specify https with Http.Connect()?
#1
Hi -

I've tried
h.Connect('hostname.xyz.org:443")
and
h.Connect("hostname.xyz.org" 0 0 443)

but when I look at the URL in Fiddler this is what I see:

POST http://hostname.xyz.org:443/webservice/GetXTicket HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Quick Macros
Host: hostname.xyz.org:443
Content-Length: 45
Pragma: no-cache

How do I specify HTTPS instead of HTTP?

Thanks!
#2
Both Connect forms are correct.

Example
Http h
h.Connect("hostname.xyz.org" 0 0 443)
h.PostAdd("x" "y")
h.PostFormData("/webservice/GetXTicket")

Fiddler should see
POST /webservice/GetXTicket HTTP/1.1
...
#3
But why does it say 'http' instead of 'https'?
#4
Sorry about the last message - Fiddler also shows http for a working query from FireFox. Will dig deeper into the differences between the browser message and the one from QM.
#5
Maybe Fiddler adds the http://server part. I use SmartSniff, it shows just what is specified in PostFormData.


Forum Jump:


Users browsing this thread: 1 Guest(s)