.Q.hp with https

Hello all, I’m a bit new to web dev.  I am try to post using .Q.hp

I’m able to post from my dev machine using Postman to a webhook service https://…

But when I try and post from q using

.Q.hp[https://…;“application/json”] “payload”`

  I get an os error

ERROR: 'conn. OS reports: The requested protocol has not been configured into the system, or no implementation for it exists. 

Any ideas?  Do I need to install some libraries?  I’m using windows.

Thanks!

Ok I installed Win64 OpenSSL v1.0.2h Light and added PATH like instructed by

http://code.kx.com/wiki/Cookbook/SSL


but now getting


An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call.


and

An attempt was made to access a socket in a way forbidden by its access permissions.

errors



calling .Q.hp like

.Q.hp[`https://...;"application/json"]"payload ..."


Any ideas?

On Sunday, March 19, 2017 at 12:37:17 PM UTC-4, Roni Hoffman wrote:

Hello all, I’m a bit new to web dev.  I am try to post using .Q.hp

I’m able to post from my dev machine using Postman to a webhook service https://…

But when I try and post from q using

.Q.hp[https://…;“application/json”] “payload”`

  I get an os error

ERROR: 'conn. OS reports: The requested protocol has not been configured into the system, or no implementation for it exists. 

Any ideas?  Do I need to install some libraries?  I’m using windows.

Thanks!

did you try setting the environment var


SSL_VERIFY_SERVER=NO


before starting q

?

or follow the section for setting SSL_CA_CERT_FILE

?(?
e
ither of those worked for me.)

Hmm I tried setting SSL_VERIFY_SERVER env var to NO, but didn’t work
I am sending like

.Q.hp[`:https://hooks.slack.com/services/…;“application/json”]“{"text": "test."}”

do you see anything wrong with that by chance?

Thanks Charles

Actually my mistake, I was setting SSL_VERIFY_SERVER wrong.  I set it correctly and it now works.  I can send messages from q to slack as a bot.  


On Sunday, March 19, 2017 at 5:30:00 PM UTC-4, Roni Hoffman wrote:

Hmm I tried setting SSL_VERIFY_SERVER env var to NO, but didn’t work
I am sending like

.Q.hp[`:https://hooks.slack.com/services/…;“application/json”]“{"text": "test."}”

do you see anything wrong with that by chance?

Thanks Charles