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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:15:03+00:00 2026-06-13T22:15:03+00:00

My title might be overly specific – I’m having trouble formulating the question, since

  • 0

My title might be overly specific – I’m having trouble formulating the question, since I haven’t dealt with network administration a lot, and especially not SSL / HTTPS. In other words, the answer to “Why haven’t you done . . .” is like to be, “I don’t know much about ….”

I am testing, and the System Under Test (SUT) is a web service calling into the Facebook API using https://graph.facebook.com.

I have a test server set up on a remote machine that will serve pages to http://graph.facebook.com. I can use the hostfile on the SUT server to redirect requests to http://graph.facebook.com to the test server. This works fine when I then type:

curl http://graph.facebook.com

The test server receives the request, and serves back the expected page.

However, as mentioned before, the SUT isn’t using the HTTP site, but the HTTPS site for the Facebook API (naturally). Is there any way I can intercept the outgoing request and redirect it to the HTTP service that I’m running on the other site? I’d like to be able to type:

curl https://graph.facebook.com

and have it be redirected to the fake Facebook service I’m running on the test server. I can configure the servers at both ends.

If this is very difficult, I might also want to put in a feature request for the ability to change the URL for the Facebook API requests. However, I think the dev is using a pre-existing Facebook API module, and this might not be straight-forward. (Okay, I got curious and checked . . . a quick investigation suggests that the API supports data injection of the code that handles the actual HTTPS requests, so he’d have to implement his own version of the interface so that he could pass in a configurable URL that I could set from outside of the code – but I’d still rather not distract him unless it’s really necessary).

I’m using an asis-server on port 80 to fake the Facebook responses, if that is relevant.

  • 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-13T22:15:04+00:00Added an answer on June 13, 2026 at 10:15 pm

    The solution we ended up using was a service on the test server that intercepted the HTTPS requests and redirected them to the HTTP service. Our ops person used nginx for this.

    We’re still not sure if this will work as a mock for the SUT – it depends on if the SUT is verifying the certificate information or ignoring it. I still might need to ask the developer to implement a feature to support mocking.

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

Sidebar

Related Questions

the title might be too generic, but I have a very specific question about
I asked a question , title of which might have been misleading so I'm
The title might be somewhat ambiguous, but bear with me (The only similar question
The title of this question might be a bit off but its the closest
I might have written a pretty confusing title but my question is rather simple.
The title of this question might be confusing but the problem is simple. I'm
the question title might be a bit confuse. but here is my case. i
Though the title might be either too specific or too vague, I have a
The original question: The title of this question might be a bit clumsily phrased,
The question title might be misleading when read out of context. Let me first

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.