Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by zaid87 · Apr 16, 2015 at 08:07 AM · websitewwwformsend

WWW Form comparison question

Hi, right now I'm trying to create a system where my game can send values to a website and open it with a press of a button (where the value will be display). I'm looking at using Form which seems to be the way to go, but I'm wondering if Form is the same as "post method" in PHP?

I'm checking some tutorial around the web regarding PHP/HTML forms and seems like the value the player inserted can easily be change in the url instead. For example:

"http://www.somesite.com/action_page.php?firstname=Mike&lastname=Manner"

The value of firstname and lastname can easily be change by editing the url. Is using WWW Form would resulted in the same way?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by spiceboy9994 · Apr 16, 2015 at 06:09 PM

The method you describe to send the parameters within the url is a Http GET request, and that's usually called to get data from a web server. The class that unity provides to execute a GET is the WWW class. I've read that if you send extra data to the request is automatically converted to a POST request, but I haven't checked that yet.

The WWWForm is used to execute Http POST requests. By dafault, the POST request data is not sent on the url, but as the request body. You can download a sniffer to understand a bit more about how data are sent in different ways from a GET Request and from a POST request (like fiddler).

http://www.telerik.com/download/fiddler

However, if you're sending information to a web server, and the information is sensitive, using a sniffer the POST is also vulnerable (not as easy as changing values within the url), but it can be modified. So there are several layers of security that you could apply to the web communication, from communicating through https, to encrypting data. I'm really familiar with web programming, ping me if you need more info about all this.

Regards

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zaid87 · Apr 17, 2015 at 02:06 AM 0
Share

Thanks for explaining, all this is totally new to me. After talking with the person that will handle the web stuff, we're thinking of changing the way the thing goes, which is sending the value first and opening the website later ins$$anonymous$$d of doing it in 1 go. This way the website will take the value from the database ins$$anonymous$$d (which I think may be a more proper way).

I'm wondering if you know whether this will require the game to use SQL or not? Since I'm using the free version, I remember not being able to use the dll needed for SQL before. From the examples and other questions I've seen, seems like it doesn't need it since SQL will be handle by the server side between the PHP and database.

avatar image spiceboy9994 · Apr 17, 2015 at 01:06 PM 0
Share

That's correct, if you are thinking to have a Web Server to respond the game data requests, then you need to write database access on your Php code. Since Unity is a client technology, you can connect to any webserver that respond / receives data (Php, $$anonymous$$VC, Ruby, NodeJs, etc). In all the cases, the database access code should be written on the backend server code.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Log in on a website and get data 0 Answers

Sending data to a .php service using Unity's WWW? 1 Answer

How to pass variables in a Network using RPC function(s) 0 Answers

Where can I find the Terrain Toolkit ? 2 Answers

Where can i find readymade AI scrips for free? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges