×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    HTTP GET method through proxy?

    Hi all,
    I download the http example from the forum. I use a cmwap connection, It always return -5120 error so I add below line after the RHttpSession is Opened:
    PHP Code:
    CHttpFilterProxyInterface::InstallFilterL(iSession); 
    Then the error disappear and MHFRunL is called with THTTPEvent::EGotResponseBodyData.

    But I found the reponse data is not what the url contains. It's something like this:

    PHP Code:
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>
    <head>
    <meta http-equiv="Cache-Control" content="max-age=0" forua="true"/>
    <meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
    <meta http-equiv="Cache-Control" content="must-revalidate" forua="true"/>
    </head>
    <card id="card" title="" >
    <onevent type="onenterforward">
    <go href="http://www.poporz.com/a?t=56586"></go></onevent>
    </card>
    </wml>

    In fact, http://www.poporz.com/a is what I want to get. It's included in the <go> tag.

    Is above information returned by the proxy? How to get the content of http://www.poporz.com/a ?

    Thank you!
    Last edited by goodtaste; 2008-09-29 at 15:51.
    poporz, Music sharing software for S60 1rd & 2rd.
    Play music during call. Support MP3 and one-key playing.
    刨乐,音乐分享软件,在通话过程中播放音乐。支持S60第一版和第二版。支持MP3,支持一键快速播放。
    http://www.poporz.com

  2. #2
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: HTTP GET method through proxy?

    Hello Goodtaste,

    According to what I've understood by your post. You are trying to "get" the content of http://www.poporz.com/a via the Get method.

    Do you know for sure if those guys have implemented the GET method at their end?

    By what I understand, when you send a request to a URL be it GET or POST you'll receive something in response. As you've mentioned, you get some response in the EGotResponseBodyData case of MHFRunL(). Probably, that is exactly what they are trying to return to every request sent to their website. I really don't understand how you can get the "actual content" of http://www.poporz.com/a.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Re: HTTP GET method through proxy?

    Thank you. I have solved this issue.
    The connection I am using is wap, so I can not connect to internet web site directly. I used proxy and the proxy return that page to me.
    In side the <go href=....></go>,it points out the true url. So I issue another get request for that url and get the www.poporz.com/a
    poporz, Music sharing software for S60 1rd & 2rd.
    Play music during call. Support MP3 and one-key playing.
    刨乐,音乐分享软件,在通话过程中播放音乐。支持S60第一版和第二版。支持MP3,支持一键快速播放。
    http://www.poporz.com

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    1

    Smile Re: HTTP GET method through proxy?

    Quote Originally Posted by goodtaste View Post
    Thank you. I have solved this issue.
    The connection I am using is wap, so I can not connect to internet web site directly. I used proxy and the proxy return that page to me.
    In side the <go href=....></go>,it points out the true url. So I issue another get request for that url and get the www.poporz.com/a

    I want to know how you solved the problem,because I meet the same question.please help me. thank you!

  5. #5
    Super Contributor
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: HTTP GET method through proxy?

    Quote Originally Posted by niyanru View Post
    I want to know how you solved the problem,because I meet the same question.please help me. thank you!
    on connect China MObile wap gateway, app need connect 10.0.0.172:80, and use http field X-Online-Host (defined by china mobile), give the target host:ip.

    and china mobile have a characteristic, when user first connect a web/wap station, china mobile will give a confirm page, only user confirm or revisit this station, it will allow the connection.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    9

    Re: HTTP GET method through proxy?

    Hi,
    I'm following the Example called HttpTaskManager from forum. I'm using
    CHttpFilterProxyInterface::InstallFilterL(iHttpSession);
    to connect using proxy, but getting a panic code -1 means "Unable to find the specified object".
    I can't understand which object can't found.
    Can anyone plz help me?? It's really urgent
    Last edited by anindyasen.cse; 2008-11-05 at 10:59.

Similar Threads

  1. not possible to connect java-apps via Web/services proxy settings
    By helgobender in forum General Development Questions
    Replies: 12
    Last Post: 2009-01-07, 16:06
  2. Reg : Http Proxy support in Symbian S60
    By decoy77 in forum General Development Questions
    Replies: 4
    Last Post: 2008-05-29, 13:20
  3. How to set proxy in an HTTP request
    By gigglie in forum Symbian
    Replies: 1
    Last Post: 2008-05-23, 10:26
  4. Replies: 2
    Last Post: 2006-10-17, 12:44
  5. http proxy
    By popacsek in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-06-28, 21:16

Posting Permissions

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