Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

how to enter another request from www with c#

$
0
0
after 2-3 days struggling I started to go force through wall if I can't do it normal way and at last I'm getting little success after 2-3 days I stoped thinking this way [how to send email with C#][1] as it seems even community doesn't know the answer after 2 days so I went new approach and YES I did manage to read the page after 12 hours struggling BUT they are all read only [Manual][2] how can I make another request than? with this code: using UnityEngine; using System.Net; using System.Net.Mail; using System.Collections; public class SendEmail : MonoBehaviour { UpdateYield WAIT; private bool start = true; string url = ""; WWW www; void Start(){ // I load the page in to www url = "https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2&hl=en"; url = "google.com"; www = new WWW(url); } void Update () { FindWWWF(); } private void FindWWWF(){ // I wait till the loading is done witch must be 1 second and than I have access to the inside Debug.Log(""+www.progress); if (WAIT.UWaitForSecondsF(www.progress,1)){ // we do a final check if it's loaded since it can happen we cannot acces the page and progress stays at 0 for 1 second so it could pass in here if (www.isDone){ Debug.Log(www.text); } } } } allso to note I did my own structure UpdateYield.UWaitForSecondsF if first argument is same than after 1 second it returnes true I did manage to get this for email: EDIT: ok I've found I can't write this long question so I'm cutting email debug out (here was Email Debug.Log) and for google: (here was google Debug.Log) - don't understand why does not let me do it correctly how would I make a simple request from google to search what ever string forward this would give me basic idea how to fill user/password at Email and go through, compose the mail, ... ... ... and maybe I'll need to learn a cache later but first another request from that site [1]: http://answers.unity3d.com/questions/433283/how-to-send-email-with-c.html [2]: http://docs.unity3d.com/Documentation/ScriptReference/WWW.html

Viewing all articles
Browse latest Browse all 171066

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>