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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:49:38+00:00 2026-05-16T07:49:38+00:00

I’m trying to get the Added contacts on this page : The data is

  • 0

I’m trying to get the “Added contacts” on this page:

The data is injected with an Ajax call, and I used Wireshark to capture the call which I think gets the data:

POST /dwr/call/plaincall/UserActionAPI.getRecentlyTitleChangedContacts.dwr HTTP/1.1

This posts a bunch of variables and a cookie, and so I made a curl call with the following string:

curl -b "cookiejar.txt" -v -e "http://www.jigsaw.com/showContactUpdateTab.xhtml?companyId=212324" \
    -F "type=text/plain&callCount=1&page=/showContactUpdateTab.xhtml?companyId=212324&httpSessionId=9CDBDA38B4F0C2A84622B523E79C0C38&scriptSessionId=784885169D0457ECDCA26FEF7B6DD7CF305&c0-scriptName=UserActionAPI&c0-methodName=getRecentlyAddedContacts&c0-id=0&c0-param0=number:212324&c0-param1=boolean:false&c0-param2=boolean:false&batchId=0" \
    "http://www.jigsaw.com/dwr/call/plaincall/UserActionAPI.getRecentlyAddedContacts.dwr"

But it always returns what looks like more JS script, even though I can see the proper data returned in Wireshark. I’ve been looking over this for a while but still can’t figure a way to get the data. Help?

  • 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-16T07:49:39+00:00Added an answer on May 16, 2026 at 7:49 am

    You’re attempting to scrape an Ajax powered html page using curl.

    That’s ambitious since the original page is reaching a certain state (obtaining a session from the server, cookies, etc), then making an ajax call.

    You’ll need to exactly mimic what the page is doing.

    For example, the call is both sending cookies with the session id and sending the same session id as one of its post parameters. — So you need to look at the incoming cookie value in order to properly create the outgoing Post parameter. I don’t know how you’d do that using just curl.

    I suggest that you may need to use Perl Mechanize or some other more capable scraping system when dealing with this web site.

    Also note that the server is returning the data that you want as a JS fragment, not as JSON. So you’ll need to parse the reply once you’re able to convince the server to give it to you.

    Added: You may want to try the Net tab in Firebug and Fiddler in addition to Wireshark when seeing the differences between the original page and your emulation of it.

    A worthy project…

    Added in response to comment about Perl Mechanize not supporting Javascript:

    You do not need your scraping program to do Javascript. You need your program to emulate the HTML page’s interaction with the server. If your program sends the exact same bits to the server as the real html page does when it is running in a browser, then the server will respond with the data that you want.

    Since it isn’t responding with the data, you are not sending the same bits.

    You should start by exactly emulating the browser. For instance, send the same headers in your requests, including the user-agent, accepts and other headers. The server could be inspecting those.

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

Sidebar

Related Questions

No related questions found

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.