big problem with POST metod...

Discussion in 'Questions (Windows Mobile)' started by Byak@, Nov 1, 2008.

  1. Byak@

    Byak@ Active Member Licensed User

    in my app i'm use autorizing with post metod.
    PHP:
    bit.New1
    httptools
    .New1
    code
    ="&pass="&spass&"&email="&httptools.UrlEncode(semail)&"&"
    buffer()=bit.StringToBytes(code,0,StrLength(code))
    Response.New1
    Request
    .New1("http://pda.vkontakte.ru/login?pda=index&acknowledge=1")
    request.ContentType="application/x-www-form-urlencoded"
    Request.Method "Post"
    request.ContentLength=ArrayLen(buffer())
    Writer.New1(Request.GetStream,true)
    Writer.WriteBytes(buffer())
    response.Value=Request.GetResponse
    s
    =response.Headers
    response
    .Close
    in Desctop it's work right,but sometimes i have error "server return 404 error".but from browser i go to pda.vkontakte.ru fine.

    in Device(wm2003) it's not work!i always have error in "response.Value=Request.GetResponse".but connection work fine.

    how?what i'm do bad?

    in attach example...please help me!:sign0148:
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    I've googled this error: "This protocol version is not supported.", and it seems to be related to network or firewall settings.
     
  3. Byak@

    Byak@ Active Member Licensed User

    and how can i do it?maybe set useragent?i'm set "mazilla firefox" but not happend...please help me!
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I'm sorry but I don't know what causes it.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice