×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Question Need one HTTP client example

    Hi All,
    I need one HTTP client example application,
    can any one send me link from where I can download the example.


    with regards
    VK

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Need one HTTP client example

    have you checked the examples available on this forum already, there should be one pretty good one for HTTP as well.

  3. #3
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Question Re: Need one HTTP client example

    Hi yucca,
    Thanks for ur quick reply.
    I found one example in emcc soft but it is not compiling one.
    there are some linking errors related to http.lib.
    the application is not able to get the http lib so all http api's used in application will come as linking errors.

    I chekced the mmp file and http lib is added in mmp file

    with regards
    VK

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Need one HTTP client example

    would it be easier to go to www.Forum.nokia.com, and write HTTP on the search box in there, at least two examples that should work:

    http://www.forum.nokia.com/info/sw.n..._0_en.zip.html

    http://www.forum.nokia.com/info/sw.n..._3_en.zip.html

  5. #5
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Re: Need one HTTP client example

    Hi yucca,

    I download S60_Platform_HTTP_Client_API_Example_v2_0_en example.
    and compiled it. As I explained to u in prev mail, same http lib problem is comming here.

    I thought my sdk might be corrupted and tried in other systems but getting same errors.

    there are linking errors related to http lib.

    I am pasting the error what I got from compiling the application.

    mwldsym2.exe: Undefined symbol: 'void RHTTPSession::Close(void) (?Close@RHTTPSes
    sion@@QAEXXZ)'
    mwldsym2.exe: referenced from 'CClientEngine::~CClientEngine(void) (??1CClientEn
    gine@@UAE@XZ)' in ClientEngine.cpp:89
    mwldsym2.exe: Undefined symbol: 'void RHTTPSession::OpenL(void) (?OpenL@RHTTPSes
    sion@@QAEXXZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::ConstructL(void) (?ConstructL
    @CClientEngine@@AAEXXZ)' in ClientEngine.cpp:108
    mwldsym2.exe: Undefined symbol: 'class RStringPool RHTTPSession::StringPool(void
    ) const (?StringPool@RHTTPSession@@QBE?AVRStringPool@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::SetHeaderL(class RHTTPHeaders
    , int, class TDesC8 const &) (?SetHeaderL@CClientEngine@@AAEXVRHTTPHeaders@@HABV
    TDesC8@@@Z)' in ClientEngine.cpp:137
    mwldsym2.exe: referenced from 'void CClientEngine::SetHeaderL(class RHTTPHeaders
    , int, class TDesC8 const &) (?SetHeaderL@CClientEngine@@AAEXVRHTTPHeaders@@HABV
    TDesC8@@@Z)' in ClientEngine.cpp:140
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:16
    0
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:203
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:574
    mwldsym2.exe: Undefined symbol: 'THTTPHdrVal::THTTPHdrVal(class RStringF) (??0TH
    TTPHdrVal@@QAE@VRStringF@@@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::SetHeaderL(class RHTTPHeaders
    , int, class TDesC8 const &) (?SetHeaderL@CClientEngine@@AAEXVRHTTPHeaders@@HABV
    TDesC8@@@Z)' in ClientEngine.cpp:139
    mwldsym2.exe: Undefined symbol: 'struct TStringTable const & RHTTPSession::GetTa
    ble(void) (?GetTable@RHTTPSession@@SAABUTStringTable@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::SetHeaderL(class RHTTPHeaders
    , int, class TDesC8 const &) (?SetHeaderL@CClientEngine@@AAEXVRHTTPHeaders@@HABV
    TDesC8@@@Z)' in ClientEngine.cpp:140
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:16
    0
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:203
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:578
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:581
    mwldsym2.exe: Undefined symbol: 'void RHTTPHeaders::SetFieldL(class RStringF, cl
    ass THTTPHdrVal) (?SetFieldL@RHTTPHeaders@@QAEXVRStringF@@VTHTTPHdrVal@@@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::SetHeaderL(class RHTTPHeaders
    , int, class TDesC8 const &) (?SetHeaderL@CClientEngine@@AAEXVRHTTPHeaders@@HABV
    TDesC8@@@Z)' in ClientEngine.cpp:140
    mwldsym2.exe: Undefined symbol: 'class RHTTPTransaction RHTTPSession::OpenTransa
    ctionL(class TUriC8 const &, class MHTTPTransactionCallback &, class RStringF) (
    ?OpenTransactionL@RHTTPSession@@QAE?AVRHTTPTransaction@@ABVTUriC8@@AAVMHTTPTrans
    actionCallback@@VRStringF@@@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:16
    5
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:208
    mwldsym2.exe: Undefined symbol: 'class RHTTPRequest RHTTPTransaction::Request(vo
    id) const (?Request@RHTTPTransaction@@QBE?AVRHTTPRequest@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:16
    8
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:212
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:220
    mwldsym2.exe: Undefined symbol: 'class RHTTPHeaders RHTTPMessage::GetHeaderColle
    ction(void) (?GetHeaderCollection@RHTTPMessage@@QAE?AVRHTTPHeaders@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:16
    8
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:212
    mwldsym2.exe: Undefined symbol: 'void RHTTPTransaction::SubmitL(class THTTPFilte
    rHandle) (?SubmitL@RHTTPTransaction@@QAEXVTHTTPFilterHandle@@@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPGetL(class TDesC8 co
    nst &) (?IssueHTTPGetL@CClientEngine@@QAEXABVTDesC8@@@Z)' in ClientEngine.cpp:17
    4
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:224
    mwldsym2.exe: Undefined symbol: 'void RHTTPMessage::SetBody(class MHTTPDataSuppl
    ier &) (?SetBody@RHTTPMessage@@QAEXAAVMHTTPDataSupplier@@@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::IssueHTTPPostL(class TDesC8 c
    onst &, class TDesC8 const &, class TDesC8 const &) (?IssueHTTPPostL@CClientEngi
    ne@@QAEXABVTDesC8@@00@Z)' in ClientEngine.cpp:220
    mwldsym2.exe: Undefined symbol: 'void RHTTPTransaction::Close(void) (?Close@RHTT
    PTransaction@@QAEXXZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::CancelTransaction(void) (?Can
    celTransaction@CClientEngine@@QAEXXZ)' in ClientEngine.cpp:243
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:335
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:345
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:361
    mwldsym2.exe: Undefined symbol: 'class RHTTPResponse RHTTPTransaction::Response(
    void) const (?Response@RHTTPTransaction@@QBE?AVRHTTPResponse@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:270
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:291
    mwldsym2.exe: Undefined symbol: 'int RHTTPResponse::StatusCode(void) const (?Sta
    tusCode@RHTTPResponse@@QBEHXZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:271
    mwldsym2.exe: Undefined symbol: 'class RStringF RHTTPResponse::StatusText(void)
    const (?StatusText@RHTTPResponse@@QBE?AVRStringF@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:275
    mwldsym2.exe: Undefined symbol: 'class MHTTPDataSupplier * RHTTPMessage::Body(vo
    id) const (?Body@RHTTPMessage@@QBEPAVMHTTPDataSupplier@@XZ)'
    mwldsym2.exe: referenced from 'void CClientEngine::MHFRunL(class RHTTPTransactio
    n, class THTTPEvent const &) (?MHFRunL@CClientEngine@@EAEXVRHTTPTransaction@@ABV
    THTTPEvent@@@Z)' in ClientEngine.cpp:291
    mwldsym2.exe: Undefined symbol: 'class RHTTPConnectionInfo RHTTPSession::Connect
    ionInfo(void) const (?ConnectionInfo@RHTTPSession@@QBE?AVRHTTPConnectionInfo@@XZ
    )'
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:575
    mwldsym2.exe: Undefined symbol: 'THTTPHdrVal::THTTPHdrVal(int) (??0THTTPHdrVal@@
    QAE@H@Z)'
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:578
    mwldsym2.exe: referenced from 'void CClientEngine::SetupConnectionL(void) (?Setu
    pConnectionL@CClientEngine@@AAEXXZ)' in ClientEngine.cpp:581

    Errors caused tool to abort.
    mwldsym2.exe: Undefined symbol: 'void RHTTPPropertySet::SetPropertyL(class RStri
    ngF, class THTTPHdrVal) (?SetPropertyL@RHTTPPropertySet@@QAEXVRStringF@@VTHTTPHd
    rVal@@@Z)'

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Need one HTTP client example

    if you do not have the http.lib, then there is something wrong with your SDK , it should be included in normalpublic SDKs.

  7. #7
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Re: Need one HTTP client example

    there is a http lib in my system, and not only my systems I tried in other systems and same error is coming. I am able to find it when i searched in my system.

    i tried compiling not only for 2nd fp2 but also for 2fp3 and 3rd edition sdk and facing some problem in all those sdk's.

    any thing extra i need to do.

    with regards
    VK

  8. #8
    Regular Contributor
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    115

    Re: Need one HTTP client example

    Hi,

    Have you changed any thing in mmp file. It easily gets compiled in both these IDE VC++ 6 and Carbide. Try to complie it from command prompt. Before building clean all the builds.
    Thanks and Regards,
    Ravi

  9. #9
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Need one HTTP client example

    In the 2nd ed FP2 SDK there is an example @
    \Symbian\8.0a\S60_2nd_FP2_CW\Examples\appprots\exampleclient

  10. #10
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Re: Need one HTTP client example

    when I tried importing http example in code warrior it is giving me below error

    Files missing from file hierarchy

    Some files were missing from file hierarchy information for the files view project

    these files have been added to the files view hierarchy in a group called "Rescued Items"


    and when i saw that rescued items it is having http.lib in that

    any thing wrong with my code warrior ???

  11. #11
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Re: Need one HTTP client example

    I tried running other examples in code warrior they all are working fine. and i tried in carbide then also same error

  12. #12
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Re: Need one HTTP client example

    paul with ur exmample also same issue.
    it looks like whereever i have http lib included in mmp it is giving link error.

  13. #13
    Regular Contributor
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    115

    Re: Need one HTTP client example

    Hi vinayakak,

    Try these commands from Command Promt (from group folder)

    abld reallyclean
    abld cleanall
    abld clean
    bldmake clean
    bldmake bldfiles
    abld build wins udeb (if wins platform)
    OR
    abld build winscw udeb (if Code Warrior)
    Thanks and Regards,
    Ravi

  14. #14
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    321

    Question Re: Need one HTTP client example

    it doesnt made any effect
    now also same thing

  15. #15
    Regular Contributor
    Join Date
    Dec 2006
    Location
    Noida, India
    Posts
    115

    Re: Need one HTTP client example

    Hi,

    Can you compress (zip or rar) the HTTP Client Example and send it to me

    emailatravi@gmail.com
    Thanks and Regards,
    Ravi

Similar Threads

  1. How to create Http Connection by specifying the client port?
    By SYTDeath in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2008-01-09, 18:35
  2. HTTP Client Error -46 and some more
    By zaeppi in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-09-12, 08:27
  3. HTTP Client - Synchronous HTTP POST Calls?
    By symbian_ravi in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-04-16, 11:51
  4. Issue in using HTTP client framework on series 60 SDK
    By nkhanna1979 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-11-25, 06:33
  5. Testing HTTP client for Nokia 3650; Looking to share code
    By nawkboy in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2003-09-10, 15:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×