Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6237139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:58:20+00:00 2026-05-24T10:58:20+00:00

I am developing an API using CodeIgniter and the RestServer for CI (see below).

  • 0

I am developing an API using CodeIgniter and the RestServer for CI (see below). I am also using the Firefox RestClient plugin to test the API.

What I am wondering is how to do the test post (what format).

Tried {“desc”:”value”} but it did not work. The API is not “seeing” the incoming post fields.

http://net.tutsplus.com/tutorials/php/working-with-restful-services-in-codeigniter-2/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:58:21+00:00Added an answer on May 24, 2026 at 10:58 am

    the post body doesn’t need to have a specific format, but the most convenient is to encode the body in the same way web browsers encode form data, specifically Content-Type: application/x-www-form-urlencoded. In particular, the Host and Content-Length headers are not optional, and the Content-Type header is usually needed to tell the server how to interpret the body. A well formed POST request will look like:

    POST /path/to/resource HTTP/1.0
    Host: example.com:80
    Content-Length: 21
    Content-Type: application/x-www-form-urlencoded
    
    key=value&key2=value2
    

    It’s still up to the server to recognize the content-type header and parse the body that way.

    Note that the data is after all the headers, not as part of the request path (in the first line).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When developing a plug-in to application, using the application API which doesn't run independently
I am developing an custom API for a web solution and I am using
I am wondering how to access facebook api best using Silverlight. Right now i
I am developing a Windows API application without using MFC . I am using
I have just started developing using Youtube API and stuck in very beginning. I
I'm developing a twitter messaging utility using Twitter API (twitterizer). But since I'm within
I am working on developing an API for a test suite. One of the
I am developing a REST API layer for my application using Zend_Rest_Controller. I have
I am using Google Maps API v3 on a website I am developing. I
I am developing unit test cases for an application using Boost.test libraries. There are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.