GithubHelp home page GithubHelp logo

Comments (8)

jenssegers avatar jenssegers commented on September 28, 2024

dev-master is still under development, I'll see what I can do this weekend.

from php-proxy.

jenssegers avatar jenssegers commented on September 28, 2024

When I create a custom Request object such as new Request('http://localhost/foo/bar', 'GET'); it does work, but when I use ServerRequestFactory::fromGlobals() it doesn't. Can you check if this is the same problem for you?

from php-proxy.

allantatter avatar allantatter commented on September 28, 2024

When I created Guzzle's Request and passed it down, then it did work (if I remember correctly). I cannot confirm atm, away from work machine.

from php-proxy.

allantatter avatar allantatter commented on September 28, 2024

This somewhat works, at least I get response from the app I expect.

//$request = ServerRequestFactory::fromGlobals();
$request = new Zend\Diactoros\Request('http://127.0.0.1:3000', 'GET');

Could you add v2.2.2 tag to commit 1b79a3a (30 May 2015 22:02:26 GMT+3)? At least that one works for me and problem with v2.2.1 is that I depend on Guzzle v6.

from php-proxy.

tejastank avatar tejastank commented on September 28, 2024

@allantatter I had php7 and like to use most simplest code, but not sure how to use this.

Can you please share code. so when I use proxy in browser it will start to work.

from php-proxy.

allantatter avatar allantatter commented on September 28, 2024

@tejastank The idea of proxying requests through PHP scripts is evil in its roots (I tried it because I needed the solution super fast to make things just work) :D I'd not recommend using it in production if possible (too large performance hit to the server). Do you have Nginx running behind PHP? Easier to give an advice for that.

from php-proxy.

tejastank avatar tejastank commented on September 28, 2024

@allantatter thanks mate, I left this right now. use python based my own japranto code, will do use in some future... :)

from php-proxy.

erlangparasu avatar erlangparasu commented on September 28, 2024

is there example for nginx config?

from php-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.