N
N
Nickolas Lyzhov2015-09-27 17:30:52
Yii
Nickolas Lyzhov, 2015-09-27 17:30:52

Why is the data sent by the PUT method turned out to be empty inside Yii?

I have ubuntu 14.04, NGINX server, PHP 5.5.9
In the index itself, if I write the output file_get_contents('php://input'), before $application->run(); all the data sent is there.
Further it is empty, And in /vendor/yiisoft/yii2/web/Request.php in the getRawBody function is empty.
Where to dig, what to watch?

Answer the question

In order to leave comments, you need to log in

11 answer(s)
N
Nickolas Lyzhov, 2015-09-27
@17_planet

The question was solved by a complete cleaning of vendor and repeated reinstallation through composer, from root.

T
toxa82, 2015-09-27
@toxa82

Prior to PHP 5.6, a stream opened with php://input could only be read once. The stream does not support seek operations. However, depending on the implementation of the SAPI interface, it may be possible to open another php://input stream and repeat the read. This is only possible if the request body is pre-stored. This is typical for a POST request, but not for other request methods such as PUT or PROPFIND.

Y
Yuri Shikanov, 2011-07-04
@dizballanze

Cloud 9 - here is a cloud ide specifically for javascript development

A
andoriyu, 2011-07-05
@andoriyu

www.akshell.com/ The author is somewhere on Habré.

B
bagyr, 2011-07-04
@bagyr

github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger I
checked that debugging works on Hello Worlds.

F
Fedor Indutny, 2011-07-04
@donnerjack13589

Vim github.com/indutny/linux-conf

C
chikuyonok, 2011-07-04
@chikuyonok

I maintain a repository with JSDocs under Eclipse JSDT (it will work for other IDEs) for various projects that I use in my work: github.com/sergeche/jsdt-docs
There is also a Node.JS in some form: github .com/sergeche/jsdt-docs/blob/master/node.js
Use something like this: There is also a VJET IDE: www.ebayopensource.org/index.php/VJET/HomePage There is support for Node.js out of the box
/** @type NodeHttpModule */
var http = require('http');
http. // code complete here

A
Alexander Keith, 2011-07-05
@tenbits

Komodo IDE - haven't seen anything better, or just come across a little on the way? In any case, satisfies all desires) And already in alpha 7 there is support for node.js: announce

N
nicity, 2011-11-23
@nicity

WebStorm 3 has completion and debugging for Node.JS, see
blog.jetbrains.com/webide/2011/11/webstorm-your-node-app/

A
Artur Zayats, 2013-07-17
@zag2art

WebStorm, how to set up, see http://www.youtube.com/watch?v=ILpS4Fq3lmw
For debugging, look towards sublime + node-inspector - how to work with it - http://www.youtube.com/watch?v =COHIRHitRdc

K
Konstantin   , 2018-06-29
@SynCap

Every sandpiper praises his swamp :)
Here are holivars with arguments and in comparison. Relevance again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question