Hi Restler/Swagger friends
There is a problem when i post a url like: /home/ahmad/local
it returns the following error:
Request URL
http://s1/RestlerUpdate/complextypestests/_url/%2Fhome%2Fahmad%2Flocal
Response Body
[unable to parse as json; raw response below]
Not Found
The requested URL /RestlerUpdate/complextypestests/_url//home/ahmad/local was not found on this server.
Response Code
404
How can i submit a url without using encoding??
my test code is:
class Type{
/**
* POST url
*
* @param string $url {@type string}
* @return string
*/
function post_url($url) {
return $url;
}
}
my project structure as follow:
myproject
|
----explorer
|
---vendor
|
---api2params.php (contain class Type)
|
---index.php
|
--- .htaccess
.htaccess as follow:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<ifModule mod_php5.c>
php_flag display_errors On
</IfModule>