PHP cURL and HTTP POST example

0 votes

I needed t to send data like this:

username=user1, password=passuser1, gender=1

To www.example.com.

I want cURL to return a response like result=OK.  Is there any solution?

Can someone tell me how to do a PHP cURL with an HTTP POST?

Jun 1, 2022 in PHP by Kichu
• 19,040 points
• 1,526 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In PHP

0 votes
1 answer

How can I select and upload multiple files with HTML and PHP using HTTP POST?

Hello @kartik, This is possible in HTML5. Example (PHP ...READ MORE

answered Sep 15, 2020 in PHP by Niroj
• 82,800 points
• 3,779 views
0 votes
1 answer

How do I remove http, https and slash from user input in php

Hello @kartik, Use: $url = preg_replace("(^https?://)", "", $url ); This ...READ MORE

answered Nov 19, 2020 in PHP by Niroj
• 82,800 points
• 4,208 views
0 votes
0 answers

What is the difference between POST and GET in HTML/PHP

I don't seem to understand what GET ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 86,360 points
• 1,340 views