Results 1 to 12 of 12

Thread: Inet POST data

Threaded View

  1. #8
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Inet POST data

    I will assume that /mysite.php is the name of a CGI program that runs on the server and not the site you are connecting to. I will take your word for it that ?mode=login is OK where you have it but I think it belongs in the argument list like this:

    LoginInputingW = "mode=login&username=" &
    txtUsernameW.Text & "&password=" & txtPasswordW.Text & "&autologin=on&redirect=&login=Log+in" & vbCrLf

    LoginDataW = LoginDataW & "POST /mysite.php HTTP/1.1" & vbCrLf

    But anyway what you are doing wrong is that you have POST two times:

    Here....

    LoginDataW = LoginDataW & "POST /mysite.php?mode=login HTTP/1.1" & vbCrLf

    and here...

    Inet1.Execute "url", "POST", LoginDataW & ""

    Your Inet command should be this....

    Inet1.Execute .URL, LoginDataW

    Use .URL and not "url"

    You don't need the final & ""

    NOTE:

    Now the next time you have a question make sure you include all information needed to solve the situation.
    Last edited by jmsrickland; Feb 10th, 2009 at 07:56 PM.

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