WWW changed since 1.5.1?

Hey,

So, I used to trigger an external php mailer thus…

var shareJoke_url = shareUrl + "name=" + WWW.EscapeURL(name) + "&email=" + recipient;
 
hs_get = WWW(shareJoke_url);

Obviously, I’m basically just opening a web link, without actually doing anything with it. All the relevant info is in the url string.

However, while this not only worked for 1.5.1 of unity iphone, the app went through revisions etc and still works. The project has since been rebuilt for ipad with the latest unity/sdk, and it no longer appears to work.

That is, the php mailer acts like nothing has happened, but if I substitute hs_get = WWW(shareJoke_url) with Application.OpenURL(shareJoke_url), it opens externally in a web browser and works a treat.

So, I also changed it to var hs_post : WWW = new WWW(shareJoke_url);

Still to no avail. Also putting yield hs_post, no effect.

I am aware that hs_get = WWW(blah) is dynamically typed, however it never caused a fault to be thrown or a crash… So, question… What’s changed?

It did work, now it doesn’t.

with unity iphone 1.6 the whole www part was replaced and now uses the iOS webrequest capabilities.
There are some consequences of that, one of them being that it potentially works different but another being that https is supported now as well

Also with Unity iPhone 1.6+ the underlying mono was pretty much completely replaced from what I understand (-> required to offer the .NET 2.1 aspects present), which can have direct and/or indirect consequences on UnityScript (can’t say much on that end, I’m a primary C# programmer, only use JS where customers want their usage layer to be in JS instead of C#)

Excellent, this confirms that I’m not crazy :slight_smile:

I shall Help Manual my way through it :smile:

… Um… Any ideas? :slight_smile:

how does the url look like etc?
my guess is that you provide something that does not make sense just like this for an url request

You could check the iPhone SDK docs on NSURLConnection which since 1.6 provides the WWW functionality