Giter VIP home page Giter VIP logo

Comments (6)

alexindigo avatar alexindigo commented on May 28, 2024

Can you elaborate a little bit more? And preferably with code examples. Thank you.

from form-data.

jixunmoe avatar jixunmoe commented on May 28, 2024

No, the one in master branch is fine, just the one on npm is bit of out of date.

from form-data.

jixunmoe avatar jixunmoe commented on May 28, 2024
POST /cgi-bin/cface_upload HTTP/1.1
Cookie: ... My cookies here ...
Referer: http://up.web2.qq.com/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/33.0.1750.152 Chrome/33.0.1750.152 Safari/537.36
Host: up.web2.qq.com
Content-Length: 22467
Connection: keep-alive

----------------------------376758346345010892460417
Content-Disposition: form-data; name="custom_face"; filename="10313813_1594437097448864_6148191449117996619_n.jpg"
Content-Type: image/jpeg

<Upload image>
----------------------------376758346345010892460417
Content-Disposition: form-data; name="f"

EQQ.View.ChatBox.uploadCustomFaceCallback
----------------------------376758346345010892460417
Content-Disposition: form-data; name="vfwebqq"

<Upload key here>
----------------------------376758346345010892460417--HTTP/1.1 200 OK
Date: Sun, 25 May 2014 13:24:08 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

9b
<head><script type="text/javascript">document.domain='qq.com';parent.({'ret':2,'msg':'invalid usergetcgiparams failed asdf'});</script></head><body></body>
0

This was the packet I captured with Wireshark, posted via form-data 0.1.2 from npm.
It doesn't include content-type header and target site wouldn't recognize it.

from form-data.

alexindigo avatar alexindigo commented on May 28, 2024

Yes, I see. I'll update it this weekend, thanks for the reminder.

from form-data.

alexindigo avatar alexindigo commented on May 28, 2024

Updated to 0.1.3, please give it a try.

from form-data.

jixunmoe avatar jixunmoe commented on May 28, 2024

Thanks ^^

from form-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.