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 BeHappy · Oct 30, 2012 at 11:08 AM · https

Error when creating request. POST request with a zero-sized post buffer is not supported

Am trying to download a unity package which i have in https secured site, And when i try to download it via WWW. Am getting the following error,

"Error when creating request. POST request with a zero-sized post buffer is not supported"

Am following the ref from WWWForm and following it only...

Can you please help me out ??

Thank you...

Comment
Add comment · Show 1
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 BeHappy · Oct 31, 2012 at 12:19 AM 0
Share

Please help....

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Lev-Lukomskyi · Jul 11, 2015 at 05:42 PM

WWW reference page states:

The WWW class can be used to send both GET and POST requests to the server. The WWW class will use GET by default and POST if you supply a postData parameter.

But when you supply new WWWForm() or new byte[]{} parameter then you get that error POST request with a zero-sized post buffer is not supported (tested this right now on Unity 5.1)

So, it appears that you cannot do POST with empty post data with WWW class.. You can send some fake data, or 0-byte like this:

 var www = new WWW(url, new byte[]{0});

It is lame but it works for me

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 siddharth3322 · Dec 06, 2017 at 10:26 AM 0
Share

This solution worked for me too, providing dummy byte array.

avatar image
0

Answer by maspi · Dec 28, 2012 at 08:58 PM

You simply have to add a Field (Ex.: sendForm.AddField("fake", "xy"))

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 kv893961 · Dec 06, 2017 at 10:43 AM 0
Share

hey sid kya aap mujhe apna phone number de sakte ho . mujhe unity se related kuch puchna hai.actually error solve nhi ho rha hai

avatar image siddharth3322 kv893961 · Dec 06, 2017 at 10:45 AM 0
Share

Please post a question and provide link to me. Also Unity personal conversion is also available.

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

13 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

Related Questions

HTTPS Tutorial 0 Answers

http request over an https webgl 1 Answer

Working behind a proxy on client site 0 Answers

http NotSupportedException in Web Player 1 Answer

How can I add a certificate to the Mono Trust store? 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