Jump to content

404 on GET Request codeigniter


lilmer

Recommended Posts

I am using a 1.7 codeigniter and I have a problem using GET request. I use GET because I'm doing a cross browsing ajax with dataType JSONP. When doing a direct access to a method with GET paramater it says 404 error.

Here's my sample

http://www.site.com/class/method?callback=sample&email=example@mail.com 404 ERROR

but when doing this

http://www.site.com/class/method/?callback=sample&email=example@mail.com WORKING

page loaded but no GET request found. I've been debugging the the framework but still can't find why the page is getting 404 when doing the first sample. By the way the CI framework was modify by someone I don't know.

 

By the way the query string is enable already, but I don't understand the Russian language comment on top

    // При активации этой возможности вызов контроллеров и методов производится через QueryString (www.site.com/index.php?c=controller&m=method)
    $config['enable_query_strings'] = TRUE;
    $config['allow_get_array']      = TRUE;

Can anyone help me to process a AJAX request using JSONP.  Thanks

Edited by lilmer
Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.