Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 21st, 2008, 02:38 AM
Registered User
 
Join Date: Oct 2008
Location: Karachi, Pakistan, Pakistan.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Http web request

i want to display yahoo site on my web page. After posting user name and password with httpwebrequest and handling redirection it gives an javascript error " You need to have Javascript enabled in order to use the all-new Yahoo! Mail." ,
how to handles this ? please help me.



  #2 (permalink)  
Old October 21st, 2008, 10:37 AM
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

If you are using internet explorer (or any user) click the tools menu and choose internet options. Click the advanced tab and enable javascript and enable it under the security settings for internet. You might also have to go to www.java.com and download the latest version of java.

Jason Hall
  #3 (permalink)  
Old October 21st, 2008, 07:25 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you planning to give everyone access to your email?

Be aware that when you programmatically access the yahoo site to log in, it's a different session from the perspective of the yahoo servers than the session of the user viewing your site. So even though you log in from your application the user won't be logged in.

Jason suggested that you might need to install java. You don't need to do that just to get javascript functionality.

-Peter
compiledthoughts.com
  #4 (permalink)  
Old October 21st, 2008, 08:48 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Jason is way off on this one, and I don't think Planoie really explained what the problem is.

But first of all, I have to say that this project *FEELS* like an attempt at identity theft. Why would you want to act as an intermediary between a user and Yahoo??? Why would anybody TRUST you to act as an intermediary?? After all, you would be able to capture their usernames and passwords and all other personal info. You wouldn't catch me using your site.

If this *is* an identity theft attempt, then I'm happy to say I don't think you will succeed. But even if you have legit reasons for this, I don't think you will succeed. Here's why:

****************************************

When you access the Yahoo email site in your browser, Yahoo utilizes cookies and scripting to control the page and (as Planoie noted) get access to your email data. It detects whether or not JavaScript is enabled by one of several simple means. (A simple example: It uses JS to set the value of some form field and then has a meta-refresh that submits the form. If it doesn't see the expected value in the form field, it knows that JS didn't set the value, and so it gives you that message. I can think of a handful of other ways to make such a check.)

When you use HttpWebRequest to hit the Yahoo site, there is no possible way that you can simulate the actions of JavaScript in the browser. (Well, it *COULD* be done, but you'd need to be a major expert in browser and web technology to pull it off.) Further, unless your request passes along all the cookies and User Agent String info that Yahoo expects, your request will fall flat on its face.

In short, I think this whole experiment is doomed to failure from the start. The fact that you had to ask the question in this forum tells me that you aren't somebody with the expertise to pull of a browser simulation and thus fool Yahoo.

Just as a point of reference: I consider myself *somewhat* knowledgable in this area. Example: I know all the components of a User Agent String, and I know what form a cookie must have, I know how to parse JavaScript, though I couldn't emulate it, and more. *I* would not tackle this project, because I think it could easily eat up a few MONTHS of my time.

*****************

If all you want to do is give your users a spot on your page where they can view their Yahoo mail, then there is an easy answer. Just use an <IFRAME> or <FRAME> and load Yahoo into it. (Of course, Yahoo might have some frame-busting protection built in, so that wouldn't work. Dunno.)
  #5 (permalink)  
Old October 22nd, 2008, 08:51 AM
Friend of Wrox
 
Join Date: Nov 2007
Location: Central Florida, USA.
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

Thanks Bill for the CORRECT explanation, I'm sorry I gave bad info but I learned something from you as I always do. I guess i just didn't understand what the true issue was. Hopefully this person isn't attempting ID theft either!

Jason Hall
  #6 (permalink)  
Old October 27th, 2008, 07:28 AM
Registered User
 
Join Date: Oct 2008
Location: Karachi, Pakistan, Pakistan.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My friends, I want to make a project just like http://flyproxy.com/
With also able to sign in yahoo, Gmail, hotmail.
for now i able to display yahoo mails page in my site and working further on it.


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xml http request AaronT Ajax 0 May 29th, 2008 11:52 PM
HTTP request works sometimes deBassMan XML 0 June 1st, 2007 08:12 AM
how to send Http request via a trigger kissvineet .NET Web Services 0 October 28th, 2005 04:50 AM
how to send Http request via a trigger kissvineet .NET Web Services 0 October 28th, 2005 04:48 AM
HTTP Request. gilf Classic ASP Professional 0 March 18th, 2005 12:32 PM



All times are GMT -4. The time now is 07:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.