permitted_uri_chars codeigniter - codeigniter

how to make sign # can be use in the uri. When i try to send an Email address in the url this message came
An Error Was Encountered
The URI you submitted has disallowed characters.
please help

The allowed uri characters are defined in config.php
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-#';

Related

Jmeter Post URL with colon

I have a form action that calls the following url :
https://someurl:jsessionid=0000000
The form works.
When trying to mimic it in Jmeter the http request
if I call that url, the server will return that the url does not exists (because the :jsessionid....)
Is there anyway to mimic a form with this kind of url?
Thanks a lot in advance!.
Based on HTML URL Encoding Reference, colon (:) can be replaced with %3A. So, you can try this in your HTTP Request:
I hope this will work for you.
I think you URL is not correct as colon in URLs can be used only in 2 cases:
As a part of URL scheme, i.e. in the end of http: or https: protocol
As a separator between username and password when basic HTTP authentication is used like http://username:password#server/path
If you passing JSESSIONID as a parameter - semicolon ; should be used so please double check the character. If it something coming from the server - raise an issue as colon is not the right separator. If it is something introduced by you - you need to change the colon to semicolon.Normally you should be using either HTTP URL Re-writing Modifier or HTTP Cookie Manager to correlate the JSESSIONID cookie.

Codeigniter url changes from 'localhost' to 'http://127.0.0.1/'

https://stackoverflow.com/a/29562910/4713946
This is my problem, and I am not sure about the answer. I am unsure where I put this code. I cannot comment on the post itself as I do not have enough reputation so I have to start a new thread. /:
Can someone maybe help me out.
I do a redirect() and when I do this, the 'Localhost' changes to '127.0.0.1'
So turns out all I had to do was change 'base_url' in 'config.php' file:
$config['base_url'] = '';
to
$config['base_url'] = '/';
You should set your base url if your using codeigniter 3 versions
$config['base_url'] = 'http://localhost/yourproject/';
If base url is blank it codeigniter 3 versions will show ip_address in url instead of localhost.

codeigniter base url and routes

I want to develop my codeigniter (v3) application at this address:
http://localhost/mycodeigniterApp/
I have :
$config['base_url'] = 'http://localhost/mycodeigniterApp/';
I get a 404 when I try to load any address in my applicaiton ( except for the default ).
Just closing this up the correct response was:
Couple checks make sure you class and file name of controller has
first letter upper case. Then check your routes.php

Url make an error in codeigniter

I am using codeigniter ,Client try to take the site using http://www.example.com , It shows "Disallowed character error ".But No issues in my browser, the error only shows in client's system.
I got some answer , but it not working for me.
Ref Link : http://wejn.com/blog/2014/10/hunting-down-the-codeigniter-disallowed-key-characters-error/
http://stackoverflow.com/questions/4197976/codeigniter-disallowed-key-characters
Anyone please help me.
Make sure you have added the disallowed charters into your $config['permitted_uri_chars'] it could be that you are missing few charters a-z 0-9~%\.\:_\-&=$
First: copy this$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-&=$'; into your config.php
Second: Stop and Start local host if on xampp or wamp / lamp etc refresh page.

codeigniter baseurl not working

I am using the baseurl() in my application. ex: "http://www.edocapp.in"
This is working in case if we type domain name with "www" but not working if I use "only http".
Application is hosted on server.
try
$config['base_url'] = 'http://www.edocapp.in';
this
Base URL should have / in the last char:
$config['base_url'] = 'http://www.edocapp.in/';
anyway, you should check your DNS record in your server/hosting.
Does it have an alias (CNAME Records) to redirect www.edocapp.in to edocapp.in ?

Resources