Search wizard for VB.net

Discussion in 'Code Snippets and Tutorials' started by tharoux, Apr 4, 2007.

  1. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Ok, so I'm using Mystical's wrapper... everything is running fine... but now I'm stuck with this... Let's say I want to make a search for the word "codestone" with the wizard.

    after using about 10 differents ways, I'm stuck with the same result.

    First: This is the last code I've tried:
    Wrapper.Request("GET", "http://www.neopets.com/market.phtml?type=wizard", "/quickref.phtml")
    Wrapper.Request("POST", "http://www.neopets.com/market.phtml?shopwizard=codestone&destination=market.phtml", "/market.phtml")

    I swear, I've tried everything and everytime, I receive the market list with the top size shop in neopets....

    What am I doing wrong... If you don't want to give me the answer right away, that's fine but give me some hint.... I'm out of idea now :oops:

    Thanks !
     
  2. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    ok here is what you need
    Code (Text):
    1. wrapper.Post("http://www.neopets.com/market.phtml", "type=process_wizard&feedset=0&shopwizard=codestone&table=shop&criteria=containing&min_price=  &max_price=" , "http://www.neopets.com/market.phtml?type=wizard")
     
  3. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    search for a packet sniffer download on google, download one and turn it on while you use the shop wizard yourself.. look at the packets it captures and you will be able to see what data and headers are sent to the server. Do the same in your program :)

    Edit: "the_skip's" info was right.. but in the future this is a quick and easy way of doing it
     
  4. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    Thanks so much to both of you !
    Everything is working fine... And I'll download a packet sniffer. I've already tried one but the amount of data I was receiving was so huge, I stopped using it.
     
  5. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    I bleive I posted help and I AM NOT ODDWORTH
     
  6. Anonymous

    Anonymous Guest

    xD! When I read that, I was all like "WTF?"

    Silly Expon :p
     
  7. marlene

    marlene Moderator
    Staff Member

    Joined:
    Dec 23, 2006
    Messages:
    1,492
    Likes Received:
    12
    Location:
    Somewhere under the Rainbow (Montreal)
    ok.. ok... it was a mistake :lol: it was changed