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 8425639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:19:38+00:00 2026-06-10T04:19:38+00:00

So I was wondering if it is possible got get a value back as

  • 0

So I was wondering if it is possible got get a value back as feedback after sending a cURL request. I got a project going on where I send XML data to a Press office, where they check if the data is valid and the press process can begin. Now I need some feedback. I know I can get a message back when i do –

echo ‘not enough paper’

or echo ‘we can start’

on that page (I mean if they do). But I need a value to like true or false, so I can set a status on my side. I will keep googling and just leave this question here, maybe some one got an idea.

  • 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-10T04:19:39+00:00Added an answer on June 10, 2026 at 4:19 am

    If you are sending some data to an external service or URL, only they can decide to put a status message in the response.

    I assume you are getting an HTTP 200 code which indicates that the request was successful, but what the other side does with the request is totally up to them. You might have to request that they add some additional parameters to their response.

    Depending on what you ask them to do, you would parse their response that you get when you execute the cURL command –

    $retValue = curl_exec($request);
    
    // if they return XML data 
    $retXML = new SimpleXMLElement($retValue);
    
    
    // if they return JSON data 
    $retJSON = json_decode($retValue);
    

    You should use what ever method you feel more comfortable with. If you are already dealing with XML data within your code, then just request that they return some XML data with a status message.


    Example return data –

    XML

    <response>
      <status value="true" />
      <message value="We can start!" />
    </response>
    

    JSON

    { 'status':'false','message':'not enough paper!' }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am wondering if its possible to solve this problem. Ive got qt application
i was wondering if it was possible to get the current object in a
I was wondering ( if possible ) if there was a program/tool/utility that when
Just toying with the SDK and I was wondering if possible a UITouch event
Just wondering is it possible to build CLI app that can be run from
I am wondering if its possible to have a an (||)or or (&&)and operator
I was wondering if its possible to directly cast objects within a foreach loop.
I was wondering if its possible to use the Google maps IFRAME code to
I was wondering - is it possible to change files that are stored on
I was wondering is it possible to register a broadcast receiver to receive two

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.