Hi ppl,,,,how r ya...hope u r fine..
Just have a lil problem with my program.
Im studying civil engineering . And i have problem with my registrations
So my friend creatred a program for me ,,but there is something missing in it
The main job for this program is to go to my university's site,puttin my ID and password then hit "submit" then sign up for materials....
The problem here is i feel like something missing in my friend program wich is "how to hit submit after putting mu ID and password"
so here is the site for my uni
http://portal.hu.edu.jo:7777/huregister/
and here is the code
# -*- coding: cp1256 -*-
import urllib
import httplib2
global http
import sys
from smtplib import SMTP
import datetime
print "This progrme was made for //darknessamman\\"
print
made = raw_input("Enter material no.: ")
sec = raw_input("Enter material section: ")
sec3 = raw_input("Enter material section for practice (default zero): ")
user = raw_input("Enter user number: ")
passo = raw_input("Enter user pass: ")
http= httplib2.Http()
smtp.quit()
def blue():
url = 'http://reg3.hu.edu.jo/huregister/'
body = {'user':user, 'pswd': passo}
global headers
headers = {'Content-type': 'application/x-www-form-urlencoded'}
response,content = http.request(url, 'POST', headers=headers, body=urllib.urlencode(body))
print response
headers = {'Content-type': 'application/x-www-form-urlencoded','Cookie': response['set-cookie']}
blue()
x=0
y=0
while True:
y=y+1
body = {'mst_no':user, 'theory_no':sec3 , 'sec_no': sec, 'crs_no': made}
url = 'http://reg3.hu.edu.jo/huregister/'
response,content = http.request(url, 'POST', headers=headers, body=urllib.urlencode(body))
x=x+1
print
print "Try number (",y,")"
print
print "=> blue it <="
if x == 30 :
blue()
x=0
stop
any body can help ?
p.s : please just forgive me if this is not the right placer for my topic,,,coz its the 1st one !