CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2015
    Posts
    1

    Post visual basic and php connection problem

    I have VB application that call PHP page for data, I have below code in visual basic for server connection, when this function run application given me error "Bad Server Responce" or "400 Bad request, your browser sent a request that this server could not understand". On every called PHP page I got this error, so please give me alternet solution to solve this problem. If i skip this step vb application can't send given value to php.

    strTempheader = "Connection: Keep -Alive" & vbCrLf & _
    "Host: " & strSystemHost & vbCrLf & _
    "Accept: */*" & vbCrLf & _
    "Content-type: application/x-www-form-urlencoded " & vbCrLf & _
    "hide:True"
    GETHEADERS = strTempheader

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: visual basic and php connection problem

    That code is just filling a variable and then assigning that value to another variable.

    There is no code there that does any communicating.

    Since there is nothing there that does any connecting nor communication not sure how we are supposed to figure out what the problem is.
    Always use [code][/code] tags when posting code.

Tags for this Thread

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

Featured