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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:15:15+00:00 2026-06-09T01:15:15+00:00

I have a Jquery Ajax request which goes to Facebook server. (jsonP) However ,

  • 0

I have a Jquery Ajax request which goes to Facebook server. (jsonP)

However , Im not satisfy with the current response and I would like to “edit” the response before it goes back to the ajax call.

In order to do it , I was thinking about building a proxy by ashx. ( it will do the request , and when the response is back – he will edit it , and it will return to the ajax call).

jQuery ajax ---> myHandler.ashx ----> Facebook +--->
                                                    |
                                                    |
jQuery ajax <---- myHandler.ashx(+edit) <-----------+

the problem is that Facebook requires its cookies , And IMHO -only facebook can access its cookies.

Is there any way for the ashx handler to be able to TRANSFER the cookie along with his request ( as if jQuery ajax would do ) ?

  • 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-09T01:15:17+00:00Added an answer on June 9, 2026 at 1:15 am

    Technically, you may simulate a cookie-aware user agent and relay them to user.

    Request 1:

    • Browser sends the first request to your ashx handler.
    • Your handler relays it to facebook server.
    • FB responds with a content + a set-cookie header(s) (fb-cookie=xxx on facebook.com)
    • Your handler edits the content and returns the set-cookie header with some kind of prefix (your-fb-cookie=xxx on yoursite.com)

    Request 2:

    • Next time the browser sends a request to your ashx handler, you will receive the the “your-fb-cookie=xxx” (as it is defined on yoursite.com)
    • Your handler relays the request to FB with the cookie “fb-cookie=xxx“
    • …

    However, be aware that facebook (or any other service) may (and should) use some kind of anti-flood detection.
    It may block your server’s IP adress as it receives lots of requests from it.
    This can even be against FB licensing terms.

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

Sidebar

Related Questions

I have a simple jquery/ajax request to the server which returns the structure and
With jQuery ajax method I have a request on some file, which returns data
I have a jQuery Ajax request through which I'm trying to send a CSRF
I currently have a jQuery/ajax request which produces a recordset which appears in #contentDiv
i have a simple Jquery code which is for sending $.ajax request and passing
Hi I have a jQuery ajax request for a login system. At first, it
I have a jQuery AJAX post request that is unexpectedly triggering the error callback
I have a strange error where my jquery ajax request doesn't submit all the
I have several HTML elements (buttons) that fire the same JQuery AJAX request. When
I have a jquery function for sending email with ajax request; function sendMail(from,to,subject,message){ var

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.