Results 1 to 3 of 3
  1. #1
    gamernuub's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Norway
    Posts
    801
    Reputation
    9
    Thanks
    69

    [Help] HttpWebRequest Class : GetResponse Problem

    Hey

    I am working on my own msn program atm and I am sick and tired of this problem :S

    Here is source :

    Code:
    Dim request As WebRequest = WebRequest.Create("https://h1.******.com/writetext/post.php?w=" & TextBox1.Text) ' Making a request to host server
    
            request.GetResponse() ' wait's for response
    The code above "runs" a online php file...

    Now the problem is that
    Code:
    request.GetResponse
    have some kind of limit of requests that can be sendt :S

    So after 3 create requests commands the app just freezes and can't connect to host server :S

    Anyone know how to avoid this?
    Is it any other way of doing it another way ?

    Ok, let me explain a little more about what this does :
    Code:
    Dim request As WebRequest = WebRequest.Create("https://h1.******.com/writetext/post.php?w=" & TextBox1.Text)
    
            request.GetResponse()
    This just runs a php file stores at host server and the php file writes a file with the information of value "w". and "w" = textbox1.text.

    So it just writes an txt file to server... Any other way of having that done?

    Highly appriciated !
    Last edited by gamernuub; 03-09-2011 at 03:26 PM.
    ATTENTION WR PLAYERS !

    I AM SELLLING ALL MY WR RETAIL ACCOUNTS ! CHEAP!

    https://www.mpgh.net/forum/124-sellin...ml#post4862046

    11 succesfull trades



    [IMG]https://i843.photobucke*****m/albums/zz356/white_tiger0226/uamfmmbygmfs-1.gif[/IMG]

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    getResponse doesn't actually wait for the response by the way. It returns (as would be expected from the method name 'get') a webresponse from your webrequest. It implements IDisposable so be sure to do something like

    [highlight=vb.net]
    Dim webReq As Net.HttpWebRequest = Ctype(Net.WebRequest.Create("ur"), Net.HttpWebRequest)
    Using webResp As Net.HttpWebResponse = CType(webReq.getResponse, Net.HttpWebResponse)
    End Using
    [/highlight]

    But, when you say 'writes a file', do you mean a local file, or a hosted file? Both are easily created and managed directly from VB.NET

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Moved to VB section, probally get some more help here.


     


     


     



    The Most complete application MPGH will ever offer - 68%