question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I send an http post request with properties, in the body or in headers?

See original GitHub issue

Describe the bug

How can I send an http post request with properties, in the body or in headers?

I don’t know what the correct syntax is to be able to send properties in the “Send Http request”. or if it is possible or not, since when I put the properties in the body the json validator does not pass and in headers it returns an error. Is it possible to remove the json validator to allow the reference of properties?

Version

Browser

  • Chrome

OS

  • Windows

To Reproduce

Steps to reproduce the behavior:

  1. Create a property
  2. Set it with some value.
  3. Try to reference that property from “Send http request” from the body or headers

Expected behavior

Screenshots

Captura

Additional context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
luhan2017commented, Mar 5, 2020

@MunozVictor oh, I am really sorry, I missed the quotes in my reply. could you try this: {"username": "${user.property}" }

0reactions
BarisCoruhcommented, Dec 9, 2020

Note: I used Post instead of Get. The problem continued.

Barış Çoruh barislg54@gmail.com, 9 Ara 2020 Çar, 12:45 tarihinde şunu yazdı:

Sorry I’m getting the same error. There is information that there is a grant-type error. I want to show you the way I sent it and the error I got. It is attached.

[image: 55.PNG] [image: error2.PNG]

Lu Han notifications@github.com, 9 Ara 2020 Çar, 04:17 tarihinde şunu yazdı:

@BarisC https://github.com/BarisC I think this is because it is a GET request, and you want to POST the body. Could you please try to update the GET to POST?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/microsoft/BotFramework-Composer/issues/2149#issuecomment-741381750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBMMNZDUYQEJ6GURB2TIJ3ST3F27ANCNFSM4K7VVGEQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

POST - HTTP - MDN Web Docs
The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header....
Read more >
How are parameters sent in an HTTP POST request?
POST, in accordance to spec, MUST serve non-idempotent requests, but you can use request body (which is segregated from Headers by ONE empty ......
Read more >
How to Send Headers With an Axios POST Request
Here's how you can set headers on an HTTP POST request with Axios. ... first parameter is the URL, the 2nd parameter is...
Read more >
Making a JSON POST Request With HttpURLConnection
In this tutorial, we'll demonstrate how to make a JSON POST request using HttpURLConnection. Further reading: Do a Simple HTTP Request in Java....
Read more >
HTTP Request Methods – Get vs Put vs Post Explained with ...
We use POST to create a new resource. A POST request requires a body in which you define the data of the entity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found