samba412 Posted April 3, 2006 Share Posted April 3, 2006 Hoping you can give guidance.I am trying to figure out how to dowload a binary data file from the internet without using a web browser.Typically I would call a web page and my PHP script would create a file and then serve a web page with a link on it. I would click on the link and the download pop up box would come up asking if I want to save the file or run it. I would then click save, select the folder to save it to and the file would download to that folder.However, I am writing a program in C# using the .Net Framework and am wondering how I can send out the request for the binary file and have it download directly to my program. Is this sort of thing done with XML and if so do you know of any links that would be helpful or any key words I could run a search on. I'm not looking to be spoon-fed, just looking to be pointed in the right direction. Hope you can help.Kind Regards,Eric Quote Link to comment https://forums.phpfreaks.com/topic/6500-question-on-dowloading-data-without-a-browser/ Share on other sites More sharing options...
Barand Posted April 4, 2006 Share Posted April 4, 2006 In case you hadn't noticed,This is NOT a C# forumThis is NOT a .NET forum.[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--][!--sizeo:5--][span style=\"font-size:18pt;line-height:100%\"][!--/sizeo--]This IS a PHP forum.[!--sizec--][/span][!--/sizec--][!--colorc--][/span][!--/colorc--] Quote Link to comment https://forums.phpfreaks.com/topic/6500-question-on-dowloading-data-without-a-browser/#findComment-23745 Share on other sites More sharing options...
Guest footballkid4 Posted April 4, 2006 Share Posted April 4, 2006 Agreed.However, if you are referring to the structure of your PHP page that may feed that content, you will be looking at the header() functions, specifically header( "Content-type: ..." )But, I HIGHLY doubt that's what you're looking for.I suggest you check here: [a href=\"http://msdn.microsoft.com\" target=\"_blank\"]http://msdn.microsoft.com[/a] because I'm sure they will have an answer to your question. Quote Link to comment https://forums.phpfreaks.com/topic/6500-question-on-dowloading-data-without-a-browser/#findComment-23747 Share on other sites More sharing options...
samba412 Posted April 4, 2006 Author Share Posted April 4, 2006 My apologies for offending anyone. I know this is a PHP sight and my question was not meant to be about C# but instead about how to have the PHP script NOT serve up web page but interact directly with any client program. I believe this is called a Web Application if I am not mistaking. Eric Quote Link to comment https://forums.phpfreaks.com/topic/6500-question-on-dowloading-data-without-a-browser/#findComment-23808 Share on other sites More sharing options...
trq Posted April 4, 2006 Share Posted April 4, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I am writing a program in C# using the .Net Framework and am wondering how I can send out the request for the binary file and have it download directly to my program[/quote][!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]how to have the PHP script NOT serve up web page but interact directly with any client program[/quote]Which question are you asking exactly?The .NET framework has everything you need to get this done without php. As stated, your question would be best posted to a .NET board or something.If for some reason you still think this is a php related issue, please explain what it is you are trying to do and why you are trying to do it this way. Quote Link to comment https://forums.phpfreaks.com/topic/6500-question-on-dowloading-data-without-a-browser/#findComment-23822 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.