Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

webclient class usage

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FutDev - 07 Jul 2006 15:24 GMT
Hello,

I'm trying to input data into a web page and read the response page. This is
easy enough with the webbrowser class but I cant get it to work with the
webclient class. I've tried all the UploadValues, UploadData methods etc but
they all seem to just reload the input page. How do I get the response page?
Joerg Jooss - 09 Jul 2006 10:11 GMT
Thus wrote FutDev,

> Hello,
>
[quoted text clipped - 3 lines]
> UploadData methods etc but they all seem to just reload the input
> page. How do I get the response page?

The web site probably requires cookies or checks the User-Agent header, none
of which are present if you use a bare bones WebClient instance. Try adding
potentially required HTTP headers -- you can use a tool like Fiddler to analyze
the HTTP traffic.

Cheers,
--
Joerg Jooss
news-reply@joergjooss.de

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.