Results 1 to 4 of 4

Thread: send post request to a webpage

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    send post request to a webpage

    What's the "fastest" way to send a HTTP POST request to a webpage?


    I know the winsock method. But I believe it is kinda slow.

  2. #2
    New Member
    Join Date
    Jul 2007
    Posts
    13

    Re: send post request to a webpage

    not sure about post, but a get request works pretty well and fast

    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    Dim strURL As String

    strURL = "https://www.scan.com/Tracks.php?uname=" & cboUsername.SelectedItem.key & "&dir=" & cboDirectory.SelectedItem.key

    ShellExecute 0, "open", strURL, vbNullString, vbNullString, SW_MAXIMIZE

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: send post request to a webpage

    basically, what u r doing is opening the webbrowser to send GET request


    that's not what I want...

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: send post request to a webpage

    Quote Originally Posted by winterslam
    What's the "fastest" way to send a HTTP POST request to a webpage?


    I know the winsock method. But I believe it is kinda slow.
    The speed issue is probably connection related and out of your hands.

Posting Permissions

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



Click Here to Expand Forum to Full Width