Jump to content

send data

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
D00M

D00M

    Newbie

  • Members
  • PipPip
  • 18 posts
guys i want a script to send some text fields to a site and get the response from site using IF statement like if site show a specific text show TRUE else FALSE

1.how to post data to a site
2.how to get response from the same

rEGARDS

#2
theonejb

theonejb

    Learning Programmer

  • Members
  • PipPipPip
  • 52 posts
Posting data to a site is dependent on how the site accepts data. It could be a POST/GET/PUT HTTP request or something different. It really just depends on the site in question.
Getting a response is pretty much the same. The site determines which method to use.

Generally, the Python library httplib or urllib2 is used to accomplish these tasks.