Why Url Encode From C# got Object Not Found in Codeigniter Controller?
I have tried to convert the data from c# unity to URL encode in unity using www.EscapeUrl
.
First, I encrypted the data using Rijndael with the text My Name Is Dennis Putera, I am 31 Years Old and I am a Programmer and I got the encrypted string is :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt/6RH0fji1yVubNDzXAmzkXy+JBqM88BJBy+rFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07+JbNl
The I use www.EscapeURL
to encode the text to pass to the controller in codeigniter :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
But when call the controller in CodeIgniter I got an error with
OBJECT NOT FOUND
My full link URL in CodeIgniter is :
http://localhost/testing/index.php/manage/decryptRJ256/blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
which Manage
is my controller and decryptRJ256
is my function and the next is the parameter value.
Looks like CodeIgniter cannot read the parameter value.
Why I got an object not found on the page?
Thank You
c# codeigniter unity3d encryption
add a comment |
I have tried to convert the data from c# unity to URL encode in unity using www.EscapeUrl
.
First, I encrypted the data using Rijndael with the text My Name Is Dennis Putera, I am 31 Years Old and I am a Programmer and I got the encrypted string is :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt/6RH0fji1yVubNDzXAmzkXy+JBqM88BJBy+rFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07+JbNl
The I use www.EscapeURL
to encode the text to pass to the controller in codeigniter :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
But when call the controller in CodeIgniter I got an error with
OBJECT NOT FOUND
My full link URL in CodeIgniter is :
http://localhost/testing/index.php/manage/decryptRJ256/blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
which Manage
is my controller and decryptRJ256
is my function and the next is the parameter value.
Looks like CodeIgniter cannot read the parameter value.
Why I got an object not found on the page?
Thank You
c# codeigniter unity3d encryption
add a comment |
I have tried to convert the data from c# unity to URL encode in unity using www.EscapeUrl
.
First, I encrypted the data using Rijndael with the text My Name Is Dennis Putera, I am 31 Years Old and I am a Programmer and I got the encrypted string is :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt/6RH0fji1yVubNDzXAmzkXy+JBqM88BJBy+rFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07+JbNl
The I use www.EscapeURL
to encode the text to pass to the controller in codeigniter :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
But when call the controller in CodeIgniter I got an error with
OBJECT NOT FOUND
My full link URL in CodeIgniter is :
http://localhost/testing/index.php/manage/decryptRJ256/blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
which Manage
is my controller and decryptRJ256
is my function and the next is the parameter value.
Looks like CodeIgniter cannot read the parameter value.
Why I got an object not found on the page?
Thank You
c# codeigniter unity3d encryption
I have tried to convert the data from c# unity to URL encode in unity using www.EscapeUrl
.
First, I encrypted the data using Rijndael with the text My Name Is Dennis Putera, I am 31 Years Old and I am a Programmer and I got the encrypted string is :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt/6RH0fji1yVubNDzXAmzkXy+JBqM88BJBy+rFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07+JbNl
The I use www.EscapeURL
to encode the text to pass to the controller in codeigniter :
blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
But when call the controller in CodeIgniter I got an error with
OBJECT NOT FOUND
My full link URL in CodeIgniter is :
http://localhost/testing/index.php/manage/decryptRJ256/blO2QFSGtC9Ii1DKAaTpFbgZs4jTq6KwgWrCt%2f6RH0fji1yVubNDzXAmzkXy%2bJBqM88BJBy%2brFyv4TTVy05t682ObIXBGrVqaQdbMo0VzUnNJdpbiQQVO3VoC07%2bJbNl
which Manage
is my controller and decryptRJ256
is my function and the next is the parameter value.
Looks like CodeIgniter cannot read the parameter value.
Why I got an object not found on the page?
Thank You
c# codeigniter unity3d encryption
c# codeigniter unity3d encryption
edited Jan 2 at 7:52
Danish Ali
1,5192920
1,5192920
asked Jan 2 at 3:59
Dennis LiuDennis Liu
13312
13312
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
GOT IT.
codeigniter cannot read the backslash url code %2f. so i have change the %2f and replace with other text and then change it back to %2f after passing the controller.
urldecode()
and the usage ofGET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)
– sintakonte
Jan 2 at 9:17
add a comment |
It's not CodeIgniter that cannot read the url parameter, it's the url encoding that cannot properly translate your parameter because it contains unallowed characters.
To convert it to allowed characters, try to convert it to base64
as shown in here : Base64 encode/decoding.
Then on the CodeIgniter side you could translate decoded string using PHP built base64_decode()
function so it will preserve any characters within your parameter :
base64_decode($this->uri->segment(3));
This line gets the 3rd parameter.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001045%2fwhy-url-encode-from-c-sharp-got-object-not-found-in-codeigniter-controller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
GOT IT.
codeigniter cannot read the backslash url code %2f. so i have change the %2f and replace with other text and then change it back to %2f after passing the controller.
urldecode()
and the usage ofGET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)
– sintakonte
Jan 2 at 9:17
add a comment |
GOT IT.
codeigniter cannot read the backslash url code %2f. so i have change the %2f and replace with other text and then change it back to %2f after passing the controller.
urldecode()
and the usage ofGET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)
– sintakonte
Jan 2 at 9:17
add a comment |
GOT IT.
codeigniter cannot read the backslash url code %2f. so i have change the %2f and replace with other text and then change it back to %2f after passing the controller.
GOT IT.
codeigniter cannot read the backslash url code %2f. so i have change the %2f and replace with other text and then change it back to %2f after passing the controller.
answered Jan 2 at 4:29
Dennis LiuDennis Liu
13312
13312
urldecode()
and the usage ofGET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)
– sintakonte
Jan 2 at 9:17
add a comment |
urldecode()
and the usage ofGET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)
– sintakonte
Jan 2 at 9:17
urldecode()
and the usage of GET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)– sintakonte
Jan 2 at 9:17
urldecode()
and the usage of GET
Parameter is most certainly the best option here. (Hasta Dhanas version is also legit)– sintakonte
Jan 2 at 9:17
add a comment |
It's not CodeIgniter that cannot read the url parameter, it's the url encoding that cannot properly translate your parameter because it contains unallowed characters.
To convert it to allowed characters, try to convert it to base64
as shown in here : Base64 encode/decoding.
Then on the CodeIgniter side you could translate decoded string using PHP built base64_decode()
function so it will preserve any characters within your parameter :
base64_decode($this->uri->segment(3));
This line gets the 3rd parameter.
add a comment |
It's not CodeIgniter that cannot read the url parameter, it's the url encoding that cannot properly translate your parameter because it contains unallowed characters.
To convert it to allowed characters, try to convert it to base64
as shown in here : Base64 encode/decoding.
Then on the CodeIgniter side you could translate decoded string using PHP built base64_decode()
function so it will preserve any characters within your parameter :
base64_decode($this->uri->segment(3));
This line gets the 3rd parameter.
add a comment |
It's not CodeIgniter that cannot read the url parameter, it's the url encoding that cannot properly translate your parameter because it contains unallowed characters.
To convert it to allowed characters, try to convert it to base64
as shown in here : Base64 encode/decoding.
Then on the CodeIgniter side you could translate decoded string using PHP built base64_decode()
function so it will preserve any characters within your parameter :
base64_decode($this->uri->segment(3));
This line gets the 3rd parameter.
It's not CodeIgniter that cannot read the url parameter, it's the url encoding that cannot properly translate your parameter because it contains unallowed characters.
To convert it to allowed characters, try to convert it to base64
as shown in here : Base64 encode/decoding.
Then on the CodeIgniter side you could translate decoded string using PHP built base64_decode()
function so it will preserve any characters within your parameter :
base64_decode($this->uri->segment(3));
This line gets the 3rd parameter.
answered Jan 2 at 5:19
Hasta DhanaHasta Dhana
1,8672514
1,8672514
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001045%2fwhy-url-encode-from-c-sharp-got-object-not-found-in-codeigniter-controller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown