-2

I need to send request from my site to my server first with specific IP. and from my server again need to send request to cross server. And catch response on web page. How do I do this in php or java script? Thank you in advance.

  • 1
    possible duplicate of [How do I send a cross-domain POST request via JavaScript?](http://stackoverflow.com/questions/298745/how-do-i-send-a-cross-domain-post-request-via-javascript) – Ohgodwhy Aug 26 '15 at 07:36
  • Achieving this has been discussed in hundreds of threads previously. Please attempt to implement your own solution. If you have already, please show your code so that we can observe what may be going wrong. – Ohgodwhy Aug 26 '15 at 07:37
  • 1
    You could look up curl in php. This can both send post and all desired request methods you want – Morten Aug 26 '15 at 08:03

1 Answers1

0

You can solve your problem using curl for more information here is the link

http://php.net/manual/en/curl.examples-basic.php

shah
  • 1,163
  • 2
  • 19
  • 40