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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:30:26+00:00 2026-05-13T21:30:26+00:00

We have a flash developer who uses calls a file called proxy.php with the

  • 0

We have a flash developer who uses calls a file called proxy.php with the querystring ?url=”http://feedburner/whatever” to access external data from rss feeds from domains that not by default accessible from swf code. for example I could have the following in the browser: http://localhost/proxy.php?url=feedburner.com/a_feed and the browser would display the page as if I’d put the feedburner url directly in the browser address bar. The PHP code in this proxy.php file is below.

$header[] = "Content-type: text/xml";
$header[] = "Content-length: ".strlen($post_data);

$ch = curl_init( $_GET['url'] ); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);

if ( strlen($post_data)>0 ){
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
}

$response = curl_exec($ch);     

if (curl_errno($ch)) {
    print curl_error($ch);
} else {
    curl_close($ch);
    //$response=split("iso-8859-2",$response);
    //$response=join("UTF-8",$response);
    print $response;
}

It works fine but because of hosting limitations we need to replicate the functionality in asp.net. I don’t know PHP and despite efforts to understand the code I am failing miserably. I need to be able the duplicate the functionality I described in the first paragraph with asp.net but despite googling and trying a technique with XmlTextWriter inside a ashx file I have failed. What am I missing here?

I’m guessing a response.redirect would not work as it tells the source to go to the external domain itself and we want to avoid that.

How would I achieve this PHP code functionality in ASP.NET?

  • 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-13T21:30:26+00:00Added an answer on May 13, 2026 at 9:30 pm

    All he is doing is invoking CURL which is an HTTP client (amongst other things) to download the file then streaming it out over the response. You can replicate the functionality by calling HTTPWebRequest. There is a tutorial here:

    http://support.microsoft.com/kb/303436

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

Sidebar

Related Questions

I have a Flash developer I'm working with. This person is building a tool
I'm a Flash developer but have been slowly moving to developing my applications in
I'm not sure if this is possible (complete non-flash developer speaking), but we have
The purpose is to have a USB flash to have a developer seat everywhere.
I have one flash file which is embading in another, the embeded one is
i have a database in MySQL who i query from a php script. Now
I have a flash application that is making javascript calls at various intervals. for
I am very good java script developer, but newbie to flash. I have started
I'm a long-time Flash developer who's recently decided to dive into HTML-based web apps,
I have this application authored in Flash CS4, and it uses ActionScript 2.0 due

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.