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

  • Home
  • SEARCH
  • 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 8297455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:25:34+00:00 2026-06-08T15:25:34+00:00

If a client sent a PUT request with an array for example: $a =

  • 0

If a client sent a PUT request with an array for example:

$a = array('age' => 18);
$rest->put('/api/users/9', $a);

How does your rest API get the $a array?

  • 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-06-08T15:25:37+00:00Added an answer on June 8, 2026 at 3:25 pm

    You can read the request body at php://input, but be warned that it’s volatile and can only be read once*.

    file_get_contents('php://input');‌​
    

    You’ll then need to parse this as a URL to use it as an array.

    * details are on the linked page

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

Sidebar

Related Questions

Client sends a POST or PUT request that includes the header: Expect: 100-continue The
I'm using httplib and django. When I do the following: conn.request(PUT, /udj/users/3/library/songs, headers={X-Udj-Ticket-Hash :
I dont have a paid account at apple site. Therefore my client sent me
Text gets accumulates piecemeal before being sent to client. Now we use own class
i want to sent very large data from Server to client, the server is
In a client/server application were text data of varying length will be sent back
say i have strings that are sent back and forth from the client, and
I am trying to use zlib for compressing data being sent to a client.
I'm trying out the REST API of the CollectionSpace software, and noticed that sending
I am developing RESTful API for my application. All getters (that use HTTP GET)

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.