मुझे यह स्क्रिप्ट ऑनलाइन मिली:
import httplib, urllib
params = urllib.urlencode({'number': 12524, 'type': 'issue', 'action': 'show'})
headers = {"Content-type": "application/x-www-form-urlencoded",
"Accept": "text/plain"}
conn = httplib.HTTPConnection("bugs.python.org")
conn.request("POST", "", params, headers)
response = conn.getresponse()
print response.status, response.reason
302 Found
data = response.read()
data
'Redirecting to <a href="http://bugs.python.org/issue12524">http://bugs.python.org/issue12524</a>'
conn.close()
लेकिन मुझे समझ में नहीं आ रहा है कि इसे PHP के साथ कैसे उपयोग किया जाए या परमेस चर के अंदर क्या है या इसका उपयोग कैसे किया जाए। क्या मुझे यह काम करने की कोशिश करने में थोड़ी मदद मिल सकती है?
live http headerऐड-ऑन और फ़ायरफ़ॉक्स में अपने यूआरएल से खुला और देखो request/responseमें यूआरएल का live http headerऐड-ऑन से आप क्या समझ जाएगा params and headersअपने कोड में है।