[web] Replicating php behaviour

Started by
3 comments, last by Pete Michaud 16 years, 4 months ago
One of the features of php is the possibity to open an url page in asynchronous mode and store the returning value (an xml file string for example) into a variable, so that it can be parsed and used in the following page code. Can this be done with asp.net ?
Advertisement
I wouldn't doubt it. Doesn't this have something to do with sockets? I don't really know, since I haven't dealt with this on a low level in PHP.
Search for "asp.net file socket".
First result: http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic61986.aspx

EDIT: Heh, read down on the first suggestion.
Search for "c# asynchronous socket" also.
Projects:> Thacmus - CMS (PHP 5, MySQL)Paused:> dgi> MegaMan X Crossfire
Yes, you definitely can, but I forgot what it was. Something with WebRequest or HttpWebRequest or something?
However ill-advised screen-scraping is, it can definitely be achieved using .NET.

The normal sources of documentation will be perfectly adequate to explain how to do it.

Mark
There's no need for screen scraping. You can either go with an HttpRequestHandler object, or you can use a Web Service. Look either one of those up.

This topic is closed to new replies.

Advertisement