cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pablo2
Level: Powered On

Post regular parameters via http

Hi, I'm trying to POST data via HTTP, need regular parameter 😕

I have tried everything...

http post.PNG

Every time I get empty POST parameters. How can I send it? I need to fetch it in PHP via $_POST.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Post regular parameters via http

Hey @Pablo2 

 

So you are sending form encoded data. here is how to do it with flow

 

ee344.PNG

In headers :

 

Content-Type : application/x-www-form-urlencoded; charset=utf-8

 

and then simply pass the parameter as shown in the image. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

7 REPLIES 7
Dual Super User
Dual Super User

Re: Post regular parameters via http

Hey @Pablo2 

 

You will have to share more details or get a better understanding on the API/Service that you are tryting to use. If you are trying to send parameters as a header then only use the header option, if it is query only then use the query option (the way you added the url is basically a replication of the query parametrs so use one of them either in the url or in the query tag) and if it is accepting a JSON body only then send it as JSON object (as you have in the picture). 

 

Generally for POST requests it will need you to send the header parameter with the content type of the body and then add the parameters in the body. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Pablo2
Level: Powered On

Re: Post regular parameters via http

How to sends param 'user' and then fetch it in PHP via:
$_POST['user'];

 

I have try everything abowe but always get empty. When I try with Servistate or other tool to send param "user" via POST I always get it.

Dual Super User
Dual Super User

Re: Post regular parameters via http

Hey @Pablo2 

 

Can you share the URL of the api service (if it is not a private one)? Or maybe a screenshot of the Postman or Servistate from where you are able to send the successful request? 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Pablo2
Level: Powered On

Re: Post regular parameters via http

Try with
http://123.sax.pl/log.php

you can see response below as array:

 

123.PNG

 

 

But when I try to do the same in MS FLow I get empty array:

 

body.PNG

Pablo2
Level: Powered On

Re: Post regular parameters via http

You can use:

http://123.sax.pl/log.php

as you can see below there is an output:

 

123.PNG

 

but from MS Flow output is empty 😕

body.PNG

Pablo2
Level: Powered On

Re: Post regular parameters via http

You can use below:

As you can see from servistate is an output

But from MS FLow not 😞

body.PNG

Dual Super User
Dual Super User

Re: Post regular parameters via http

Hey @Pablo2 

 

So you are sending form encoded data. here is how to do it with flow

 

ee344.PNG

In headers :

 

Content-Type : application/x-www-form-urlencoded; charset=utf-8

 

and then simply pass the parameter as shown in the image. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Kudoed Authors
Users Online
Currently online: 269 members 5,508 guests
Recent signins:
Please welcome our newest community members: