jquery - PHP Proxy that handles both GET and POST without use of cURL -


I have looked everywhere but I do not have to know why I am posting this question.

  1. PHP may
  2. can not

    I'm looking for code for a PHP proxy, so that I can get help in cross-domain jquery requests effectively. Use the curl - my server config does not support it, possibly leaving this address (), but I'm open to the option.

  3. Both GET and POST requests should support
  4. Support support for both XML and JSON

    I have a solution for high And searched the following, but always find solutions that use curl or do not support POST.

    I am currently using this which does not work for POST:

      header ('content-type: application / jason'); $ Daurl = $ _GET ['url']; $ Handle = FOPN ($ daurl, "r"); {$ Handle handle} {$ buffer = $ (handle $ 40); $ buffer;} Fclose ($ handle);}    

    See Example # 4 on Linked Pages (PHP Online Docs) on how to 'custom' requests using currents for / p>

Comments