Advertisement
Guest User

Untitled

a guest
Mar 15th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.44 KB | None | 0 0
  1. public function getSiniestroAction(){
  2. $request = $this->getRequest();
  3. if ($request->isPost())
  4. {
  5. //get object and return as JSON
  6. }else{
  7. error_log (print_r($request, TRUE), 3, 'debug_php.log');
  8. return $this->redirect()->toRoute('bienvenida');
  9. }
  10. }
  11.  
  12. $.ajax({
  13. url: '/sccr/public/get-siniestro',
  14. type: 'POST',
  15. data: {
  16. 'no_code': $('#code').val(),
  17. },
  18. dataType: "json",
  19. cache: false,
  20. success: function(msg){
  21. console.log(JSON.stringify(msg));
  22. },
  23. error: function(request, error) {
  24. console.log('Error!, datail:' + error);
  25. console.log('Request: ' + JSON.stringify(request));
  26. }
  27. });
  28.  
  29. error_log (print_r($request, TRUE), 3, 'debug_php.log');
  30.  
  31. ZendHttpPhpEnvironmentRequest Object
  32. (
  33. [baseUrl:protected] =>
  34. [basePath:protected] =>
  35. [requestUri:protected] => /get-siniestro?callback=jQuery220043698793728138363_1489588464882
  36. [serverParams:protected] => ZendStdlibParameters Object
  37. (
  38. [storage:ArrayObject:private] => Array
  39. (
  40. [REDIRECT_STATUS] => 200
  41. [HTTP_HOST] => IP:8085
  42. [HTTP_CONNECTION] => keep-alive
  43. [HTTP_ACCEPT] => text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
  44. [HTTP_X_REQUESTED_WITH] => XMLHttpRequest
  45. [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
  46. [HTTP_REFERER] => http://IP:8085/administrador/crear-solicitud
  47. [HTTP_ACCEPT_ENCODING] => gzip, deflate
  48. [HTTP_ACCEPT_LANGUAGE] => es-ES,es;q=0.8
  49. [HTTP_COOKIE] => PHPSESSID=feqqj6idebdgas0pi36oj2jp51
  50. [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  51. [SERVER_SIGNATURE] => <address>Apache/2.4.7 (Ubuntu) Server at IP Port 8085</address>
  52.  
  53. [SERVER_SOFTWARE] => Apache/2.4.7 (Ubuntu)
  54. [SERVER_NAME] => IP
  55. [SERVER_ADDR] => IP2
  56. [SERVER_PORT] => 8085
  57. [REMOTE_ADDR] => IP3
  58. [DOCUMENT_ROOT] => /var/www/zf/public
  59. [REQUEST_SCHEME] => http
  60. [CONTEXT_PREFIX] =>
  61. [CONTEXT_DOCUMENT_ROOT] => /var/www/zf/public
  62. [SERVER_ADMIN] => [no address given]
  63. [SCRIPT_FILENAME] => /var/www/zf/public/index.php
  64. [REMOTE_PORT] => 49554
  65. [REDIRECT_QUERY_STRING] => callback=jQuery220043698793728138363_1489588464882
  66. [REDIRECT_URL] => /get-siniestro
  67. [GATEWAY_INTERFACE] => CGI/1.1
  68. [SERVER_PROTOCOL] => HTTP/1.1
  69. [REQUEST_METHOD] => GET
  70. [QUERY_STRING] => callback=jQuery220043698793728138363_1489588464882
  71. [REQUEST_URI] => /get-siniestro?callback=jQuery220043698793728138363_1489588464882
  72. [SCRIPT_NAME] => /index.php
  73. [PHP_SELF] => /index.php
  74. [REQUEST_TIME_FLOAT] => 1489588468.328
  75. [REQUEST_TIME] => 1489588468
  76. )
  77.  
  78. )
  79.  
  80. [envParams:protected] => ZendStdlibParameters Object
  81. (
  82. [storage:ArrayObject:private] => Array
  83. (
  84. )
  85.  
  86. )
  87.  
  88. [method:protected] => GET
  89. [allowCustomMethods:protected] => 1
  90. [uri:protected] => ZendUriHttp Object
  91. (
  92. [validHostTypes:protected] => 27
  93. [user:protected] =>
  94. [password:protected] =>
  95. [scheme:protected] => http
  96. [userInfo:protected] =>
  97. [host:protected] => IP
  98. [port:protected] => 8085
  99. [path:protected] => /get-siniestro
  100. [query:protected] => callback=jQuery220043698793728138363_1489588464882
  101. [fragment:protected] =>
  102. )
  103.  
  104. [queryParams:protected] => ZendStdlibParameters Object
  105. (
  106. [storage:ArrayObject:private] => Array
  107. (
  108. [callback] => jQuery2200436987937281386363_1489588464882
  109. )
  110.  
  111. )
  112.  
  113. [postParams:protected] =>
  114. [fileParams:protected] =>
  115. [version:protected] => 1.1
  116. [headers:protected] => ZendHttpHeaders Object
  117. (
  118. [pluginClassLoader:protected] => ZendHttpHeaderLoader Object
  119. (
  120. [plugins:protected] => Array
  121. (
  122. [accept] => ZendHttpHeaderAccept
  123. [acceptcharset] => ZendHttpHeaderAcceptCharset
  124. [acceptencoding] => ZendHttpHeaderAcceptEncoding
  125. [acceptlanguage] => ZendHttpHeaderAcceptLanguage
  126. [acceptranges] => ZendHttpHeaderAcceptRanges
  127. [age] => ZendHttpHeaderAge
  128. [allow] => ZendHttpHeaderAllow
  129. [authenticationinfo] => ZendHttpHeaderAuthenticationInfo
  130. [authorization] => ZendHttpHeaderAuthorization
  131. [cachecontrol] => ZendHttpHeaderCacheControl
  132. [connection] => ZendHttpHeaderConnection
  133. [contentdisposition] => ZendHttpHeaderContentDisposition
  134. [contentencoding] => ZendHttpHeaderContentEncoding
  135. [contentlanguage] => ZendHttpHeaderContentLanguage
  136. [contentlength] => ZendHttpHeaderContentLength
  137. [contentlocation] => ZendHttpHeaderContentLocation
  138. [contentmd5] => ZendHttpHeaderContentMD5
  139. [contentrange] => ZendHttpHeaderContentRange
  140. [contenttransferencoding] => ZendHttpHeaderContentTransferEncoding
  141. [contenttype] => ZendHttpHeaderContentType
  142. [cookie] => ZendHttpHeaderCookie
  143. [date] => ZendHttpHeaderDate
  144. [etag] => ZendHttpHeaderEtag
  145. [expect] => ZendHttpHeaderExpect
  146. [expires] => ZendHttpHeaderExpires
  147. [from] => ZendHttpHeaderFrom
  148. [host] => ZendHttpHeaderHost
  149. [ifmatch] => ZendHttpHeaderIfMatch
  150. [ifmodifiedsince] => ZendHttpHeaderIfModifiedSince
  151. [ifnonematch] => ZendHttpHeaderIfNoneMatch
  152. [ifrange] => ZendHttpHeaderIfRange
  153. [ifunmodifiedsince] => ZendHttpHeaderIfUnmodifiedSince
  154. [keepalive] => ZendHttpHeaderKeepAlive
  155. [lastmodified] => ZendHttpHeaderLastModified
  156. [location] => ZendHttpHeaderLocation
  157. [maxforwards] => ZendHttpHeaderMaxForwards
  158. [origin] => ZendHttpHeaderOrigin
  159. [pragma] => ZendHttpHeaderPragma
  160. [proxyauthenticate] => ZendHttpHeaderProxyAuthenticate
  161. [proxyauthorization] => ZendHttpHeaderProxyAuthorization
  162. [range] => ZendHttpHeaderRange
  163. [referer] => ZendHttpHeaderReferer
  164. [refresh] => ZendHttpHeaderRefresh
  165. [retryafter] => ZendHttpHeaderRetryAfter
  166. [server] => ZendHttpHeaderServer
  167. [setcookie] => ZendHttpHeaderSetCookie
  168. [te] => ZendHttpHeaderTE
  169. [trailer] => ZendHttpHeaderTrailer
  170. [transferencoding] => ZendHttpHeaderTransferEncoding
  171. [upgrade] => ZendHttpHeaderUpgrade
  172. [useragent] => ZendHttpHeaderUserAgent
  173. [vary] => ZendHttpHeaderVary
  174. [via] => ZendHttpHeaderVia
  175. [warning] => ZendHttpHeaderWarning
  176. [wwwauthenticate] => ZendHttpHeaderWWWAuthenticate
  177. )
  178.  
  179. )
  180.  
  181. [headersKeys:protected] => Array
  182. (
  183. [0] => cookie
  184. [1] => host
  185. [2] => connection
  186. [3] => accept
  187. [4] => xrequestedwith
  188. [5] => useragent
  189. [6] => referer
  190. [7] => acceptencoding
  191. [8] => acceptlanguage
  192. )
  193.  
  194. [headers:protected] => Array
  195. (
  196. [0] => ZendHttpHeaderCookie Object
  197. (
  198. [encodeValue:protected] => 1
  199. [storage:ArrayObject:private] => Array
  200. (
  201. [PHPSESSID] => feqqj6idebdgias0pi36oj2jp51
  202. )
  203.  
  204. )
  205.  
  206. [1] => ZendHttpHeaderHost Object
  207. (
  208. [value:protected] => IP
  209. )
  210.  
  211. [2] => Array
  212. (
  213. [name] => Connection
  214. [line] => Connection: keep-alive
  215. )
  216.  
  217. [3] => Array
  218. (
  219. [name] => Accept
  220. [line] => Accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
  221. )
  222.  
  223. [4] => Array
  224. (
  225. [name] => X-Requested-With
  226. [line] => X-Requested-With: XMLHttpRequest
  227. )
  228.  
  229. [5] => Array
  230. (
  231. [name] => User-Agent
  232. [line] => User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
  233. )
  234.  
  235. [6] => Array
  236. (
  237. [name] => Referer
  238. [line] => Referer: http://IP/administrador/crear-solicitud
  239. )
  240.  
  241. [7] => Array
  242. (
  243. [name] => Accept-Encoding
  244. [line] => Accept-Encoding: gzip, deflate
  245. )
  246.  
  247. [8] => Array
  248. (
  249. [name] => Accept-Language
  250. [line] => Accept-Language: es-ES,es;q=0.8
  251. )
  252.  
  253. )
  254.  
  255. )
  256.  
  257. [metadata:protected] => Array
  258. (
  259. )
  260.  
  261. [content:protected] =>
  262. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement