Comments (8)
dev-master is still under development, I'll see what I can do this weekend.
from php-proxy.
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.
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.
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.
@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.
@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.
@allantatter thanks mate, I left this right now. use python based my own japranto code, will do use in some future... :)
from php-proxy.
is there example for nginx config?
from php-proxy.
Related Issues (20)
- Class ServerRequestFactory not found HOT 5
- Problems with POST and forms HOT 4
- stress test exception!!
- Fatal error: Uncaught Error: Class 'Zend\Diactoros\Response\SapiEmitter' not found HOT 1
- Port gets lost on forwarded webpage.
- Zend\Diactoros\Response\SapiEmitter has been depricated HOT 4
- How can I send basic authentication with request? HOT 1
- HTTP ERROR 500 HOT 1
- Here's an alternative for Laravel 7, or PHP only:
- upload file proxy invalid HOT 2
- Need example how to change response body HOT 1
- Doesn't work with Laravel 8 HOT 3
- .
- EmitterException: Output has been emitted previously HOT 1
- Response of url to a varible
- POST form_params is not passed down/proxied at all
- Skip Ajax Requests
- Urls not redirected.
- How to forward to different Port?
- Failed opening required 'vendor/autoload.php'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-proxy.