HTTP POST request through PROXY php
335
I want send data via Http Post through proxy using CURL on PHP I had try to do it but without result !! Please any help !
I want send data via Http Post through proxy using CURL on PHP I had try to do it but without result !! Please any help !
People are also looking for solutions to the problem: Problem escaping php variable
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
Find the answer in similar questions on our website.
Answer
Solution:
Use cURL normally, but before you do use this function to set your proxy configuration:
Use the following options to control the proxy for your curl commands:
There are also various other
CURLOPT_*
that lets you do things like set up authentication for your proxy, specify different ports etc...