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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:08:54+00:00 2026-06-18T07:08:54+00:00

Edited 05-02-2013. I have updated the curl code. I have build a small class

  • 0

Edited 05-02-2013. I have updated the curl code.

I have build a small class to work with formstack api. And I think that it works.

The problem is when I try to try all the leads from a form (more than 4000).

I build the urls with its page, time, and per_page param.

The strange is that Formstack give me back all the time the same json.

I have try that urls in a browser and it works great.

https://www.formstack.com/api/v2/form/xxxxxxxx/submission.json?oauth_token=xxxxthisismyoauthtokenxxxxx&per_page=100&min_time=2004-11-18 18:57:45&max_time=2013-02-04 18:57:45&page=0

https://www.formstack.com/api/v2/form/xxxxxxxx/submission.json?oauth_token=xxxxthisismyoauthtokenxxxxx&per_page=100&min_time=2004-11-18 18:57:45&max_time=2013-02-04 18:57:45&page=1

This is my curl code:

public function makeCurlGetCall($url)
{
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $url);
  curl_setopt($curl, CURLOPT_HTTPGET, TRUE);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-type: application/json')); 
  curl_setopt($curl, CURLOPT_FRESH_CONNECT, 1);
  curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookies.txt');
  curl_setopt($curl, CURLOPT_COOKIEJAR, 'cookies.txt');

  $result =  curl_exec($curl);
  curl_close($curl);

  return $result;
}

As I have say, If I run the Curl method in a for loop to build all the page url I get the same json, but If I chech the url in a browser it works great.

Thanks

Oskar

  • 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-18T07:08:56+00:00Added an answer on June 18, 2026 at 7:08 am

    Just Clear your cache and restart your browser. It will work , the browser is caching the response and you are getting the same response each time. Or the other thing may be you can have errors in the loop itself.

    for ($i = 1; $i <=  $lead_decode->pages; $i++)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[Edited/Updated] Allow me to explain the situation. I have three files: Below is db.class.php.
Edited because I'm a moron. Should have said class originally. I have the code
Edited:- Updated One What's wrong with this code. Now I am getting error on
(Edited for clarification) My (non-OSGi) application build is in Gradle, and I am trying
Edited code - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @Cell;
Edited Question: This should be clear. using System; namespace UpdateDateTimeFields { class Program {
I have a modal in which I upload an image. That image is then
I have a small node.js app running at heroku. Everything was fine until today.
EDITED: Reconstructed the sample code to include a more relevant set of objects. I
** * **** EDITED * ** * * I have multiple sql servers with

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.