Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getSiniestroAction(){
- $request = $this->getRequest();
- if ($request->isPost())
- {
- //get object and return as JSON
- }else{
- error_log (print_r($request, TRUE), 3, 'debug_php.log');
- return $this->redirect()->toRoute('bienvenida');
- }
- }
- $.ajax({
- url: '/sccr/public/get-siniestro',
- type: 'POST',
- data: {
- 'no_code': $('#code').val(),
- },
- dataType: "json",
- cache: false,
- success: function(msg){
- console.log(JSON.stringify(msg));
- },
- error: function(request, error) {
- console.log('Error!, datail:' + error);
- console.log('Request: ' + JSON.stringify(request));
- }
- });
- error_log (print_r($request, TRUE), 3, 'debug_php.log');
- ZendHttpPhpEnvironmentRequest Object
- (
- [baseUrl:protected] =>
- [basePath:protected] =>
- [requestUri:protected] => /get-siniestro?callback=jQuery220043698793728138363_1489588464882
- [serverParams:protected] => ZendStdlibParameters Object
- (
- [storage:ArrayObject:private] => Array
- (
- [REDIRECT_STATUS] => 200
- [HTTP_HOST] => IP:8085
- [HTTP_CONNECTION] => keep-alive
- [HTTP_ACCEPT] => text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
- [HTTP_X_REQUESTED_WITH] => XMLHttpRequest
- [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
- [HTTP_REFERER] => http://IP:8085/administrador/crear-solicitud
- [HTTP_ACCEPT_ENCODING] => gzip, deflate
- [HTTP_ACCEPT_LANGUAGE] => es-ES,es;q=0.8
- [HTTP_COOKIE] => PHPSESSID=feqqj6idebdgas0pi36oj2jp51
- [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- [SERVER_SIGNATURE] => <address>Apache/2.4.7 (Ubuntu) Server at IP Port 8085</address>
- [SERVER_SOFTWARE] => Apache/2.4.7 (Ubuntu)
- [SERVER_NAME] => IP
- [SERVER_ADDR] => IP2
- [SERVER_PORT] => 8085
- [REMOTE_ADDR] => IP3
- [DOCUMENT_ROOT] => /var/www/zf/public
- [REQUEST_SCHEME] => http
- [CONTEXT_PREFIX] =>
- [CONTEXT_DOCUMENT_ROOT] => /var/www/zf/public
- [SERVER_ADMIN] => [no address given]
- [SCRIPT_FILENAME] => /var/www/zf/public/index.php
- [REMOTE_PORT] => 49554
- [REDIRECT_QUERY_STRING] => callback=jQuery220043698793728138363_1489588464882
- [REDIRECT_URL] => /get-siniestro
- [GATEWAY_INTERFACE] => CGI/1.1
- [SERVER_PROTOCOL] => HTTP/1.1
- [REQUEST_METHOD] => GET
- [QUERY_STRING] => callback=jQuery220043698793728138363_1489588464882
- [REQUEST_URI] => /get-siniestro?callback=jQuery220043698793728138363_1489588464882
- [SCRIPT_NAME] => /index.php
- [PHP_SELF] => /index.php
- [REQUEST_TIME_FLOAT] => 1489588468.328
- [REQUEST_TIME] => 1489588468
- )
- )
- [envParams:protected] => ZendStdlibParameters Object
- (
- [storage:ArrayObject:private] => Array
- (
- )
- )
- [method:protected] => GET
- [allowCustomMethods:protected] => 1
- [uri:protected] => ZendUriHttp Object
- (
- [validHostTypes:protected] => 27
- [user:protected] =>
- [password:protected] =>
- [scheme:protected] => http
- [userInfo:protected] =>
- [host:protected] => IP
- [port:protected] => 8085
- [path:protected] => /get-siniestro
- [query:protected] => callback=jQuery220043698793728138363_1489588464882
- [fragment:protected] =>
- )
- [queryParams:protected] => ZendStdlibParameters Object
- (
- [storage:ArrayObject:private] => Array
- (
- [callback] => jQuery2200436987937281386363_1489588464882
- )
- )
- [postParams:protected] =>
- [fileParams:protected] =>
- [version:protected] => 1.1
- [headers:protected] => ZendHttpHeaders Object
- (
- [pluginClassLoader:protected] => ZendHttpHeaderLoader Object
- (
- [plugins:protected] => Array
- (
- [accept] => ZendHttpHeaderAccept
- [acceptcharset] => ZendHttpHeaderAcceptCharset
- [acceptencoding] => ZendHttpHeaderAcceptEncoding
- [acceptlanguage] => ZendHttpHeaderAcceptLanguage
- [acceptranges] => ZendHttpHeaderAcceptRanges
- [age] => ZendHttpHeaderAge
- [allow] => ZendHttpHeaderAllow
- [authenticationinfo] => ZendHttpHeaderAuthenticationInfo
- [authorization] => ZendHttpHeaderAuthorization
- [cachecontrol] => ZendHttpHeaderCacheControl
- [connection] => ZendHttpHeaderConnection
- [contentdisposition] => ZendHttpHeaderContentDisposition
- [contentencoding] => ZendHttpHeaderContentEncoding
- [contentlanguage] => ZendHttpHeaderContentLanguage
- [contentlength] => ZendHttpHeaderContentLength
- [contentlocation] => ZendHttpHeaderContentLocation
- [contentmd5] => ZendHttpHeaderContentMD5
- [contentrange] => ZendHttpHeaderContentRange
- [contenttransferencoding] => ZendHttpHeaderContentTransferEncoding
- [contenttype] => ZendHttpHeaderContentType
- [cookie] => ZendHttpHeaderCookie
- [date] => ZendHttpHeaderDate
- [etag] => ZendHttpHeaderEtag
- [expect] => ZendHttpHeaderExpect
- [expires] => ZendHttpHeaderExpires
- [from] => ZendHttpHeaderFrom
- [host] => ZendHttpHeaderHost
- [ifmatch] => ZendHttpHeaderIfMatch
- [ifmodifiedsince] => ZendHttpHeaderIfModifiedSince
- [ifnonematch] => ZendHttpHeaderIfNoneMatch
- [ifrange] => ZendHttpHeaderIfRange
- [ifunmodifiedsince] => ZendHttpHeaderIfUnmodifiedSince
- [keepalive] => ZendHttpHeaderKeepAlive
- [lastmodified] => ZendHttpHeaderLastModified
- [location] => ZendHttpHeaderLocation
- [maxforwards] => ZendHttpHeaderMaxForwards
- [origin] => ZendHttpHeaderOrigin
- [pragma] => ZendHttpHeaderPragma
- [proxyauthenticate] => ZendHttpHeaderProxyAuthenticate
- [proxyauthorization] => ZendHttpHeaderProxyAuthorization
- [range] => ZendHttpHeaderRange
- [referer] => ZendHttpHeaderReferer
- [refresh] => ZendHttpHeaderRefresh
- [retryafter] => ZendHttpHeaderRetryAfter
- [server] => ZendHttpHeaderServer
- [setcookie] => ZendHttpHeaderSetCookie
- [te] => ZendHttpHeaderTE
- [trailer] => ZendHttpHeaderTrailer
- [transferencoding] => ZendHttpHeaderTransferEncoding
- [upgrade] => ZendHttpHeaderUpgrade
- [useragent] => ZendHttpHeaderUserAgent
- [vary] => ZendHttpHeaderVary
- [via] => ZendHttpHeaderVia
- [warning] => ZendHttpHeaderWarning
- [wwwauthenticate] => ZendHttpHeaderWWWAuthenticate
- )
- )
- [headersKeys:protected] => Array
- (
- [0] => cookie
- [1] => host
- [2] => connection
- [3] => accept
- [4] => xrequestedwith
- [5] => useragent
- [6] => referer
- [7] => acceptencoding
- [8] => acceptlanguage
- )
- [headers:protected] => Array
- (
- [0] => ZendHttpHeaderCookie Object
- (
- [encodeValue:protected] => 1
- [storage:ArrayObject:private] => Array
- (
- [PHPSESSID] => feqqj6idebdgias0pi36oj2jp51
- )
- )
- [1] => ZendHttpHeaderHost Object
- (
- [value:protected] => IP
- )
- [2] => Array
- (
- [name] => Connection
- [line] => Connection: keep-alive
- )
- [3] => Array
- (
- [name] => Accept
- [line] => Accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
- )
- [4] => Array
- (
- [name] => X-Requested-With
- [line] => X-Requested-With: XMLHttpRequest
- )
- [5] => Array
- (
- [name] => User-Agent
- [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
- )
- [6] => Array
- (
- [name] => Referer
- [line] => Referer: http://IP/administrador/crear-solicitud
- )
- [7] => Array
- (
- [name] => Accept-Encoding
- [line] => Accept-Encoding: gzip, deflate
- )
- [8] => Array
- (
- [name] => Accept-Language
- [line] => Accept-Language: es-ES,es;q=0.8
- )
- )
- )
- [metadata:protected] => Array
- (
- )
- [content:protected] =>
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement