I need .NET equivalent for Perl's LWP, if there is one

T

Ted Byers

This query will make sense, initially only for those who know both
Perl and C#.NET

My google searchs so far have proved fruitless, giving me only
(seemingly countless) pages dealing with constructing pages using
ASP.NET running on IIS to provide content to a client machine
requesting the resource using browsers like MS IE or Firefox.

Basically, there is a perl package called LWP that supports submitting
requests to a website and then processing the response. For my
present task, this would be enough. Hence, my first question is: "Is
there something in .NET supporting this, and if so what?"

For a task that hasn't yet been requested, but for which I see a need
RSN, I'd need to take this a step further. In the early days of Java,
Sun have a complete web browser written in Java, and this could be
used within an applet. The use case that makes this appropriate, with
the security model used by the early java applets, still makes sense
in some contexts. Hence, my second question has two parts. a) is
there a .NET equivalent to Java applets? and b) is there a .NET
component that provides support for web browsing?

If you know URLs describing what I am after, I would appreciate
hearing about it.

Thanks

Ted
 
T

Tom Shelton

Ted Byers pretended :
This query will make sense, initially only for those who know both
Perl and C#.NET

My google searchs so far have proved fruitless, giving me only
(seemingly countless) pages dealing with constructing pages using
ASP.NET running on IIS to provide content to a client machine
requesting the resource using browsers like MS IE or Firefox.

Basically, there is a perl package called LWP that supports submitting
requests to a website and then processing the response. For my
present task, this would be enough. Hence, my first question is: "Is
there something in .NET supporting this, and if so what?"

There are multiple ways to interact with a webserver in .NET. For
simple non-graphical needs, there is System.Net.WebClient. This will
allow you to download files, resources, etc. And does allow some
limited control over the http headers you send.

If you need more advanced control, then you can use
System.Net.HttpWebRequest/HttpWebResponse.
For a task that hasn't yet been requested, but for which I see a need
RSN, I'd need to take this a step further. In the early days of Java,
Sun have a complete web browser written in Java, and this could be
used within an applet. The use case that makes this appropriate, with
the security model used by the early java applets, still makes sense
in some contexts. Hence, my second question has two parts. a) is
there a .NET equivalent to Java applets? and b) is there a .NET
component that provides support for web browsing?

If you know URLs describing what I am after, I would appreciate
hearing about it.

The closest thing to an applet in .net would be Silverlight. Though, I
would say it's closer to Flex or Adobe Air than an applet. I believe
that there is a control in Silverlight (I know for a fact in WPF, but
silverlight is only a subset of wpf) that can view webcontent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top