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
1
Question by Skynari · Jan 29, 2011 at 10:38 AM · wwwgethttptwitter

Error when creating http request. GET request with custom headers is not supported.

Hi,

I'm trying to use Twitter API and there are some situations where I need to perform http "GET" operation with custom headers but when I do it with WWW class, it returns the error message.

You are trying to load data from a www stream which had the following error when downloading. Error when creating request. GET request with custom headers is not supported.

Does anyone know why WWW doesn't support custom headers for GET request? Could Unity please fix this problem?

Thanks in advance!

Comment
Add comment · Show 3
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 Eric5h5 · Jan 29, 2011 at 04:52 PM 0
Share

The procedure is to write the answer and mark it solved, rather than writing "solved" in the title.

avatar image Skynari · Jan 30, 2011 at 03:25 AM 0
Share

@Eric5h5, thx~ btw I've realized that I still need some helps on this question so I've edited it again.

avatar image ThatsAMorais · Jan 11, 2014 at 06:45 AM 0
Share

Does this relate at all to my question? http://answers.unity3d.com/questions/613777/web-player-crashes-during-www-request-to-server.html

3 Replies

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

Answer by Simon Wittber · Jan 31, 2011 at 06:50 AM

It is simply not supported. This might help you, however. A WWW Alternative

Comment
Add comment · Show 1 · 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 Skynari · Feb 01, 2011 at 05:25 AM 0
Share

thanks! I will try to use the alternative. I hope Unity will support this in a near future.

avatar image
0

Answer by ina · Jan 05, 2014 at 01:35 AM

Unity 4.3 (just checked) now supports custom headers using GET

WWW w = new WWW(url,null,headers);

where headers is a hashtable of headers

Comment
Add comment · Show 3 · 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 Bunny83 · Jan 05, 2014 at 02:40 AM 0
Share

really? That would be great ;) Unity had a lot strange (in)sanity-checks which i never understood why they're doing those checks.

avatar image pedrord88 · Feb 28, 2014 at 03:12 PM 0
Share

I have a project in Unity 4.3, and using WWW 2 = new WWW(url,null,headers); to create a GET request with custom headers works when playing the game in the Editor, but NOT in the webplayer build. In the webplayer build shows the following error:

Error when creating request. GET request with custom headers is not supported.

avatar image davebuchhofer · Apr 02, 2015 at 10:25 PM 0
Share

Same problem here as pedro with 4.6, it works in the editor, using either Hashtable or Dictionary for the headers, however in the webplayer it fails throwing the error:

Error when creating request. GET request with custom headers is not supported

avatar image
0

Answer by MRCalderon3D · Jan 07, 2014 at 10:59 AM

In 4.3, WWW constructor for WP8 or Windows Store doesn't support Hastables.

Comment
Add comment · 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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

HTTP Response Headers? 3 Answers

POST data via WWWForm is not working for Twitter OAuth process. 1 Answer

get twitter access token 1 Answer

WWW Resolving host timed out 2 Answers

http request over an https webgl 1 Answer


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