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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:59:21+00:00 2026-05-23T06:59:21+00:00

It seems like im getting a problem when Im trying to send a request

  • 0

It seems like im getting a problem when Im trying to send a request to a server in php. The http api request is something like this:

https://www.quickbase.com/db/basddzvkb?act=API_DoQuery&ticket=6_bsdaaap8y_by5bx6_b_crji7wwewew3b9asd5zibmf8jh3bhsdsddvhruc9csquzdg9bzw4&apptoken=cgsb5xdwehusdaaagcjs222dz9&fmt=structured&query={’22’.ct.’test’}

I have the following part of my code in php where I believe the error is occuring:

else
    {
        $ch = curl_init($input);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        //curl_setopt($ch, CURLOPT_POST, true);
        $this->input = $input;

    }

    $r = curl_exec($ch);

    print_r(curl_getinfo($ch));


    if($return_xml) {
        $response = new SimpleXMLElement($r);
    }

This is what I get from the print_r(curl_getinfo($ch)) statement:

[content_type] => text/html
[http_code] => 400
[header_size] => 129
[request_size] => 251
[filetime] => -1
[ssl_verify_result] => 20
[redirect_count] => 0
[total_time] => 0.281
[namelookup_time] => 0
[connect_time] => 0.063
[pretransfer_time] => 0.188
[size_upload] => 0
[size_download] => 20
[speed_download] => 71
[speed_upload] => 0
[download_content_length] => 20
[upload_content_length] => 0
[starttransfer_time] => 0.281
[redirect_time] => 0
[certinfo] => Array ( )

Also as you can see that I commented out the curlopt_post, its because it was causing problems when I was doing a different api request. Im not sure what the solution can be and I have been looking at this problem for awhile now hopefully someone can help me thanks 🙂

  • 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-23T06:59:21+00:00Added an answer on May 23, 2026 at 6:59 am

    Datasage helped me come up with this answer, you basically have to add urlencode(“{’22’.ct.’test’}”); to this part of the code and it will produce the correct output.

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

Sidebar

Related Questions

I am trying to send a request to an url like this http://mysite.dk/tværs?test=æ from
Seems like this should be obvious, but how do I send arrow key presses
I am trying to submit this webform and log into this site: https://www.kalahari.net/profile/pipeline/signin.aspx I
I'm trying to do something that seems like it should be very simple, but
This is a pretty vague question and getting it answered seems like a long
I am just getting started with MVC, and it seems like it will be
This may seem like a simple question but i am getting an error when
Seems like a simple problem: I have an SVN repo inside our firewall. I
Seems like cuke doesn't show the full error message (at least when problem occurs
I'm trying to configure build.xml files for build forge, but it seems like I

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.