Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP stream from asp.net to php

Status
Not open for further replies.

mickjbud

Programmer
Jun 13, 2002
48
GB
Hi all

Currently trying to read an http stream from an asp.net server. The scenario is as follows.

My PHP cURL code is requesting a file on the .NET server which if, the parameters are correct in the URL, processes the .NET file and a return code of 200 with extra information streamed back and displayed on the browser page.

However, on error the ASP.net server returns a 400 code also with extra information streamed in a text stream. Unfortunatley the only information I get on the page is Bad Request which is displayed as a result of the 400 code being pushed to the browser.

I have tried alternatives to cURL including file_get_contents, fopen etc but these fail as well.

My question is how do I get the streamed info in PHP. Also tried this in ASP but not .NET and failed too.

All help is welcome and appreciated

Thanks

Mick

mymapofseychelles
eWOC
LookandBookIt
Rotography

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top