Results 1 to 4 of 4

Thread: [RESOLVED] POSTing from winapp

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Resolved [RESOLVED] POSTing from winapp

    Hi, I want to use a windows app to POST data to a website.

    The website stores the data in a database.

    I need to know wether I actually need to download the resulting page to make sure the php code on the other end gets executed and the data is stored.

    The one case I've tested I didn't need to.

    Hope I've made myself clear, any insight would be appreciated.

    edit: it needs to be done for a great number of different pages, that's why I am not sure after my first test.
    Last edited by grilkip; Feb 1st, 2006 at 04:38 AM.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: POSTing from winapp

    You are not required to collect the response back, but it is wise to check that it succeeded. A HTTP reponse of 200 or 3xx will be returned if the HTTP reuqest was successful.

    However, If you want to know whther the script processed the data successfully, it is a good idea to return another number in the body of the response indicate what if anything happened.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: POSTing from winapp

    I see, the scripts are not under my control so I can't change them.

    But your answer pleases me.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: [RESOLVED] POSTing from winapp

    If you look at the example app in my signature, you''l be able to see the kind of responses you get.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

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