Http Methods, waht do they do??

Discussion in 'Questions (Windows Mobile)' started by Cableguy, Jul 26, 2008.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi, in my latest code, i'm using the http dll, in order to get some info on a specific web page...
    my problem is that this page require login, in a previous page, so I need to do some trimming of some strings...
    I believe to have the login part done, but when i try to reach the login page with the login info, I get one of two error, depending on the method I use...
    With method "Get":

    "The strem was not readable"

    With Method "POST"

    "The remote server returned an error: (411) Length Required"

    What does this mean, and are the results of each usable method, what do they do?

    PS...My loging string is like this:
    http://speed.travian.pt/dorf1.php?login="1217078018"&edb0889="GALHUDO"&ee09d76="VITOR68"&ec03ff1=""
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    When I enter this URL in my browser (which is equivalent to GET method) it takes me to the login page.

    When you use the POST method you should first set the ContentLength property.
     
  3. Cableguy

    Cableguy Expert Licensed User

    Ok, so how can I know the value...
    Is it just the sum of all the letters in the sentence after the "normal" url?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. Cableguy

    Cableguy Expert Licensed User

    Aproaching the problem in a different way...
    If I use the WebBrowser dll, with the http, after login in and loading the page I wich to extrat the data from, will I be able to "Read" that page?
     
  6. agraham

    agraham Expert Licensed User

    Not on a device. From my WebBroswer help . "It is not possible to access the text of the browser whether set by DocumentText or by navigating to a URL". On the device the DocumentText property is write only.

    However on the desktop DocumentText is readable. As you appear to have already recompiled my source just add a get for the DocumentText property to the source and recompile. That should give you access to the HTML - no guarantees as I haven't tried it as I kept the WebBrowser capability to that of the device to avoid having two libraries.
     
  7. Cableguy

    Cableguy Expert Licensed User

    Ok, so I went back to basis and re-engineered Andrews WebBrowser dll, added 2 new props and 1 new method, and altered one Write only prop to be I/O, and I finaly got things started....

    Thanks for ALL your help...it's been priceless...
     
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