473,498 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Download web page from URL (with redirect) to a text file with vb.net

Hi everyone,

i tried a lot but i don't seem to be able to do anything conclusive !

Here what i want to do :

LogIn in a webpage using this URL :

http://movies.hsx.com/servlet/Login?...&password=1242

and download the source page in a txt file that i could save on my
computer.

I have tried with HttpWebRequest, WebRequest,
AllowAutoRedirect=true...etc....

nothing works...all that it downloads is a source page where it says
Please LogIn...but where i use this URL in a browser...it shows me the
correct page and i can save manually the source code of the page.

Can someone attemp to crack this problem ?

I don't need anything fancy...only something that i can put a URL and
a save file path...thats it.

Thank you very much...!

I've put so many hours on this....

Martin

Mar 18 '07 #1
2 2662
Hello moris7,
>all that it downloads is a source page where it says
Please LogIn...
Well, when I use that URL in my browser, a login page is exactly what I
get. I tried only with Firefox - maybe they have an "intelligent" thing
there that reacts to the user agent when the request comes in? That might
explain why your code isn't working either. Or maybe something has just
changed about the page since you posted...
Oliver Sturm
--
http://www.sturmnet.org/blog
Mar 22 '07 #2
Hello moris7,

Another thought - when you use your browser, maybe you're logged in to the
site because of a cookie you have. Would be another explanation for the
difference in behaviour you're seeing.
Oliver Sturm
--
http://www.sturmnet.org/blog
Mar 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5811
by: peetm | last post by:
I'd like to write to a log whenever a visitor to my site downloads a file. So, I'd like the link they click to be to a php 'page' that returns the file. Don't know how to do that! Side...
3
12379
by: James Kirk | last post by:
The script below allows me to link to a file and as the user clicks to download, the 'File Download' windows appears as normal, and the user can download... The original page is then redirected...
0
1812
by: Buddy Ackerman | last post by:
I am trying to implment a file download via a link such that when clicked, instead of starting the default application for that type of file the user will be presented with a download dialog...
9
21254
by: Matt Nunnally | last post by:
I have a form which allows the user to download a simple text file. They click on the download button and it brings up the "Save As" dialog. Once they save the file, I want them to be redirected to...
8
5948
by: ally | last post by:
Hi, I'm having a page in which table get dynamically generated. It can have any number of columns at run-time. I have a print button to print it, its working fine till now what I want is to set...
0
7121
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6993
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.