10 questions
0
votes
0
answers
302
views
IntelliJ Http client: Conditional header
I want to use the Intellij Http client to do some HTTP requests. I have different environments. On one of them, I want to login with a JWT and on the other with OAuth2. Both need different headers. I ...
2
votes
1
answer
884
views
Using IntelliJ's HTTP client, how can I run an imported request and pass it variables to be used in the request and response-handler?
I am trying to create a base request in getToken.http that I can import and run in my main.http file. The base request needs three variables, two of which are loaded from the http-client.env.json file,...
2
votes
0
answers
96
views
How to use in place variable within handler scripts?
How can I use in place variable within handler scripts?
i.e:
// tests.http content
@my_var = "my_val"
< {%
let myVar = "myVal";
client.log(myVar);
myVar = $my_var;
...
-5
votes
1
answer
55
views
How to read json into variable?
How can I read a json into a variable to be used throughout http file, i.e as in:
# myrequest.http content
< {%
import readFile from './readFile.js';
client.global.set("DATA", ...
2
votes
1
answer
401
views
IntelliJ Http Client Body with XML
Goal: A POST request with the IntelliJ HTTP Client and SOAP XML body
Problem: Body Tag seems not to work with the XML.
I tried to make the following requests with the IntelliJ HTTP Client:
### CLient ...
0
votes
1
answer
278
views
Intellij idea rest client file uploading path as parameter
Trying to make POST request with file as path and added it as variable
###Import
POST http://localhost:8088/v1/import/example/file
Content-Type: multipart/form-data; boundary=boundary
--boundary
...
0
votes
1
answer
412
views
How to use Postman's Predefined Variables when importing Postman Collections into IntelliJ IDEA for using them with IntelliJ's HTTP Client Plugin?
Jet Brains has announced, that since the September, 2023, we can now import collections from Postman and use them with HTTP Client plugin.
Migration from the Postman to IntelliJ sounds nice, as it ...
0
votes
1
answer
792
views
Why are the tests of the response not failing in Rider http-client?
A webservice returns this json
{
"title": "Test how to filter the response",
"features": [
{ "feature": "AB1", "price": "1.00&...
4
votes
1
answer
5k
views
Use script to form request body in IntelliJ integrated http client
In pseudo-whish-language this is what I try to achieve in IntelliJ integrated http client:
POST {{basepath}}/upload
Content-Type: application/json
{
"content": "{% btoa(await fetch('...
8
votes
2
answers
9k
views
jira REST API create issue including component
I am trying to create issue using Jira REST API including component. I am posting this JSON but I get The remote server returned an error: (400) Bad Request.
Issue is:- Without component there is no ...