Coder Social home page Coder Social logo

Post Parameters about curl-to-php HOT 4 CLOSED

incarnate avatar incarnate commented on July 23, 2024
Post Parameters

from curl-to-php.

Comments (4)

NabiKAZ avatar NabiKAZ commented on July 23, 2024 1

Here --data-raw was used.
There is PR #35 and waiting for marge.

from curl-to-php.

NabiKAZ avatar NabiKAZ commented on July 23, 2024

Would do you provide sample curl command?

from curl-to-php.

mikualpha avatar mikualpha commented on July 23, 2024

There is a curl command what copied from Chrome(90.0) "Copy as curl(bash)" in F12.
Replaced domain and cookies:
curl 'https://sample.com/test.php?' \ -H 'Connection: keep-alive' \ -H 'Cache-Control: max-age=0' \ -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'Origin: https://sample.com' \ -H 'Upgrade-Insecure-Requests: 1' \ -H 'DNT: 1' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-Fetch-Mode: navigate' \ -H 'Sec-Fetch-User: ?1' \ -H 'Sec-Fetch-Dest: iframe' \ -H 'Referer: https://sample.com/' \ -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \ -H 'Cookie: there_is_a_cookie' \ --data-raw '__lib=test&__type=test' \ --compressed

from curl-to-php.

incarnate avatar incarnate commented on July 23, 2024

#35 merged, thanks for submitting the issue.

from curl-to-php.

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.