ফাইলের নামের আগে কার্ল কমান্ডের আগে @ (এ) চিহ্নটি কী বোঝায়?


37

আমি একটি curlকমান্ডের উদাহরণটি দেখছি যা সার্ভারে ডেটা পোস্ট করার জন্য ফাইল নামের আগে @ চিহ্ন ব্যবহার করে।

curl http://localhost/ --data-binary @file.txt

এটার মানে কি? এটি কি কমান্ডের মধ্যে ফাইলের বিষয়বস্তু প্রবেশ করান? এটি নির্দিষ্ট curl?

উত্তর:


42

এটি কার্ল করার জন্য নির্দিষ্ট। থেকে man curl:

--data-binary <data>
  (HTTP) This posts data exactly as specified with no extra processing whatsoever.
  If you start the data with the letter @, the rest should be a filename.  Data is
  posted in a similar manner as --data-ascii does, except that newlines are preserved
  and conversions are never done.

  If this option is used several times, the ones following the first will append data
  as described in -d, --data.

3
আমার সেখানে দেখা উচিত ছিল। আমি যদিও এটি একটি শেল জিনিস হিসাবে প্রত্যাশা ছিল। অসংখ্য ধন্যবাদ.
— রবিনগ্রিন্ডরোড
আমাদের সাইট ব্যবহার করে, আপনি স্বীকার করেছেন যে আপনি আমাদের কুকি নীতি এবং গোপনীয়তা নীতিটি পড়েছেন এবং বুঝতে পেরেছেন ।
Licensed under cc by-sa 3.0 with attribution required.