الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

التعامل مع صفحة ويب من ارسال واستقبال

بدأه Testr في 30 يناير 2010 · 8 رد · 1,113 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

ممكن طريقة التعامل مع صفحة على الانترنت بمعنى ارسال واستقبال البيانات عن طريق الارسال بـ Get او Post

وشكرا

#2

libcurl

http://curl.haxx.se

1
(map share people)

فضلا لاتقم بمراسلتي من أجل أسئلة لها أقسامها في المنتدى حتى تعم الفائدة على الجميع وللحصول على إجابات أفضل من أعضاء أكثر خبرة.
Weblog
@bitbucket
@xmonader

#3

شكرا على المشاركة اخى الكريم

ونزلت الملفات وجربتها لكن بيظهر خطا

fatal error LNK1120: 4 unresolved externals

----

وهل cURL هى الحل الوحيد

وشكرا

#4

http://www.adp-gmbh.ch/win/misc/sockets.html

اقتباس
ونزلت الملفات وجربتها لكن بيظهر خطا

fatal error LNK1120: 4 unresolved externals

ما هي بقية رسالة الخطء

#5

شكرا اخى على مشاركتك الغالية

وبعد تنفيذ الكود التالى

http://curlpp.org/index.php/examples/47-example-00

وتم وضع كل الملفات المطلوبة

المجلدات curl - curlpp - utilspp

وهذا ناتج تنفيذ الكود

------ Build started: Project: test_curl, Configuration: Debug Win32 ------
Compiling...
main.cpp
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\exception.hpp(49) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'curlpp::RuntimeError'
        c:\program files\microsoft visual studio 9.0\vc\include\stdexcept(148) : see declaration of 'std::runtime_error'
        c:\program files\microsoft visual studio 9.0\vc\include\curlpp\exception.hpp(48) : see declaration of 'curlpp::RuntimeError'
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\exception.hpp(70) : warning C4275: non dll-interface class 'std::logic_error' used as base for dll-interface class 'curlpp::LogicError'
        c:\program files\microsoft visual studio 9.0\vc\include\stdexcept(21) : see declaration of 'std::logic_error'
        c:\program files\microsoft visual studio 9.0\vc\include\curlpp\exception.hpp(69) : see declaration of 'curlpp::LogicError'
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(183) : warning C4251: 'curlpp::internal::CurlHandle::mWriteFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=size_t,
            TList=utilspp::tl::TypeList<char *,utilspp::tl::TypeList<size_t,utilspp::tl::TypeList<size_t,utilspp::NullType>>>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(184) : warning C4251: 'curlpp::internal::CurlHandle::mHeaderFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=size_t,
            TList=utilspp::tl::TypeList<char *,utilspp::tl::TypeList<size_t,utilspp::tl::TypeList<size_t,utilspp::NullType>>>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(185) : warning C4251: 'curlpp::internal::CurlHandle::mReadFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=size_t,
            TList=utilspp::tl::TypeList<char *,utilspp::tl::TypeList<size_t,utilspp::tl::TypeList<size_t,utilspp::NullType>>>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(186) : warning C4251: 'curlpp::internal::CurlHandle::mProgressFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=int,
            TList=utilspp::tl::TypeList<double,utilspp::tl::TypeList<double,utilspp::tl::TypeList<double,utilspp::tl::TypeList<double,utilspp::NullType>>>>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(187) : warning C4251: 'curlpp::internal::CurlHandle::mDebugFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=int,
            TList=utilspp::tl::TypeList<curl_infotype,utilspp::tl::TypeList<char *,utilspp::tl::TypeList<size_t,utilspp::NullType>>>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\curlhandle.hpp(188) : warning C4251: 'curlpp::internal::CurlHandle::mSslFunctor' : class 'utilspp::Functor<R,TList>' needs to have dll-interface to be used by clients of class 'curlpp::internal::CurlHandle'
        with
        [
            R=CURLcode,
            TList=utilspp::tl::TypeList<void *,utilspp::NullType>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optionlist.hpp(110) : warning C4251: 'curlpp::internal::OptionList::mOptions' : class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'curlpp::internal::OptionList'
        with
        [
            _Kty=CURLoption,
            _Ty=curlpp::OptionBase *
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\slist.hpp(77) : warning C4251: 'curlpp::internal::SList::mData' : class 'std::list<_Ty>' needs to have dll-interface to be used by clients of class 'curlpp::internal::SList'
        with
        [
            _Ty=std::string
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\form.hpp(91) : warning C4251: 'curlpp::HttpPost::mForms' : class 'std::list<_Ty>' needs to have dll-interface to be used by clients of class 'curlpp::HttpPost'
        with
        [
            _Ty=utilspp::clone_ptr<curlpp::FormPart>
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optioncontainer.inl(39) : error C2491: 'curlpp::internal::OptionContainer<OptionType>::OptionContainer' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optioncontainer.inl(45) : error C2491: 'curlpp::internal::OptionContainer<OptionType>::OptionContainer' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optioncontainer.inl(53) : error C2491: 'curlpp::internal::OptionContainer<OptionType>::setValue' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optioncontainer.inl(60) : error C2491: 'curlpp::internal::OptionContainer<OptionType>::getValue' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optioncontainer.inl(67) : error C2491: 'curlpp::internal::OptionContainer<OptionType>::getHandleOptionValue' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optionsetter.inl(36) : error C2491: 'curlpp::internal::OptionSetter<OptionValueType,optionType>::setOpt' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optionsetter.inl(45) : error C2491: 'curlpp::internal::OptionSetter<std::string,optionType>::setOpt' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\internal\optionsetter.inl(54) : error C2491: 'curlpp::internal::OptionSetter<std::list<_Ty>,optionType>::setOpt' : definition of dllimport function not allowed
        with
        [
            _Ty=std::string
        ]
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(45) : error C2491: 'curlpp::Option<OT>::Option' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(52) : error C2491: 'curlpp::Option<OT>::Option' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(63) : error C2491: 'curlpp::Option<OT>::Option' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(71) : error C2491: 'curlpp::Option<OT>::~Option' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(86) : error C2491: 'curlpp::Option<OT>::setValue' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(99) : error C2491: 'curlpp::Option<OT>::updateMeToOption' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(107) : error C2491: 'curlpp::Option<OT>::clear' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(117) : error C2491: 'curlpp::Option<OT>::getValue' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(125) : error C2491: 'curlpp::OptionTrait<OptionType,opt>::OptionTrait' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(131) : error C2491: 'curlpp::OptionTrait<OptionType,opt>::OptionTrait' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(139) : error C2491: 'curlpp::OptionTrait<OptionType,opt>::clone' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(152) : error C2491: 'curlpp::OptionTrait<OptionType,opt>::updateHandleToMe' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(160) : error C2491: 'curlpp::NoValueOptionTrait<option>::NoValueOptionTrait' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(168) : error C2491: 'curlpp::NoValueOptionTrait<option>::clone' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(178) : error C2491: 'curlpp::NotAvailableOptionTrait<OptionType>::NotAvailableOptionTrait' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(185) : error C2491: 'curlpp::NotAvailableOptionTrait<OptionType>::NotAvailableOptionTrait' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(193) : error C2491: 'curlpp::NotAvailableOptionTrait<OptionType>::clone' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\option.inl(201) : error C2491: 'curlpp::NotAvailableOptionTrait<OptionType>::updateHandleToMe' : definition of dllimport function not allowed
c:\program files\microsoft visual studio 9.0\vc\include\curlpp\easy.hpp(154) : warning C4251: 'curlpp::Easy::mCurl' : class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'curlpp::Easy'
        with
        [
            _Ty=curlpp::internal::CurlHandle
        ]
Build log was saved at "file://d:\Desktop Programming\C++\Projects\test_curl\test_curl\Debug\BuildLog.htm"
test_curl - 26 error(s), 12 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#6

هل من حل

#7

الشفرة ليست سي++ إنما CLI

عليك بإستخدام الفيزوال ستوديو 2005 أو أحد الإصدارات التي تليه لتتمكن من إدراج مكتبات .Net

#8

مافى طريقة بـ c++

#9

السلام عليكم

يجب أن تتعلم بعض الأشياء عن html و عن لغة سكربتية مثل php او asp ثم حاول عمل بعض التطبيقات على get و post

بعدها تعلم كيفية استخدام socket في السي أو السي++

حينها ستعرف كيف تشتغل هذه الأمور

بالتوفيق

مواضيع مشابهة