Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to ignore certification verification #11

Open
hareendran opened this issue Jul 4, 2020 · 3 comments
Open

how to ignore certification verification #11

hareendran opened this issue Jul 4, 2020 · 3 comments

Comments

@hareendran
Copy link

hareendran commented Jul 4, 2020

couple of questions:

Q1 : is there a way to ignore the certificate while making the http request?
Q2 : is there a way to get a cookie by name ? been using a hack response.headers.valuesOf("Set-Cookie")[1].split(';')[0]
Q3: is there way to add special headers to request

suggestion : could you please make print as part of the official documentation? I took me a while to figure that one out.
( I had to search to issues log to figure that one out)

> {%
  print("s0",client.global.get(my-cookie"));
%}
@zinoviy23
Copy link
Member

@hareendran Hi!
Q1, Q3: Can you please describe use case more?
Q2: Currently there isn't any way. I've created an issue

Thanks for suggestion! But looks like print is not HTTP Client API, it belongs to Nashorn JavaScript Engine. We can add it to completion.

@hareendran
Copy link
Author

Q3 : our internal services needs a special header X-XSRF-TOKEN with value of xrf token; but that header doesn't seem to be passed to services

POST https://myservices/refresh/account/123
X-XSRF-TOKEN: {{XSRF-TOKEN}}

@zinoviy23
Copy link
Member

Can you please try to run request, create an issue and attach logs(Help > Show logs) to it in our tracker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants