Skip to main content
added 135 characters in body
Source Link
Sanjay Shiyal
  • 998
  • 1
  • 12
  • 34

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

In above url , api returns some parameters in xml format

I have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

I already tried above code but it shows empty array

if i remove first three character from parameter %3F than i got result but that parameter returns from api so can't change that one

so if anyone have idea about this than please let me know

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

In above url , api returns some parameters in xml format

I have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

I already tried above code but it shows empty array

so if anyone have idea about this than please let me know

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

In above url , api returns some parameters in xml format

I have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

I already tried above code but it shows empty array

if i remove first three character from parameter %3F than i got result but that parameter returns from api so can't change that one

so if anyone have idea about this than please let me know

Magento2 : How To Get Current Url Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

inIn above url , api returns some parameters in xml format

iI have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

iI already tried above code but it shows empty array

so if anyone have idea about this than please let me know

Magento2 : How To Get Current Url Parameters In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

in above url , api returns some parameters in xml format

i have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

i already tried above code but it shows empty array

so if anyone have idea about this than please let me know

Magento2 : How To Get Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

In above url , api returns some parameters in xml format

I have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

I already tried above code but it shows empty array

so if anyone have idea about this than please let me know

Source Link
Sanjay Shiyal
  • 998
  • 1
  • 12
  • 34

Magento2 : How To Get Current Url Parameters In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<%2FRESPONSEDESCRIPTION><%2FRESULT>

in above url , api returns some parameters in xml format

i have to get value of params in check contoller but i have got only empty array

using this code $this->getRequest()->getParams()

i already tried above code but it shows empty array

so if anyone have idea about this than please let me know