login to other site by sending post variables


Posted on 16th Feb 2014 07:03 pm by admin

hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us importent information like changes to the timetable. now this stupid mail account oanly has a web interface. no imap or pop3/smtp. (and it's not looking like that is going to change soon)

i am trying to make a script that logs in to the page an than screen-scrapes the web interface so and then just formats it as an rss feed or something so my feedreader can notifig me if i have a mail.

the login page of the webmail is a php page and it uses POST to send the login data to the next page. is also sets a cookie that i wil need to acces the next page.

i found a methed HttpRequest::send ( void ) on the php.net manual but i don't get how it works and how i can acces the data it returns, can you help me with this.
and secondly normaly i can get the data form the page by using $data = file_get_contents($url); or loadHTMLFile($url); but it might not work becouse it wel need the cookie... is thare a way i can do this?

thanks in advance,

220 Like 9 Dislike
Previous php-forum Next php-forum
Other php-forum

email CODING Problem
Email coding problem.

I need to send a section of the info to $tf and the same as a Cc to $em

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my

How to change Time Zone
HI
I want to change the time zone of the server to another country.How can do that?

Thanks

WELCOME SCREEN
first of all let me tell you what does my script do,

it´s a very simple query to show a e

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

explode() function problem maybe
Hi I'm having trouble searching my database. When I type two words in the search field it only searc

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Pipe email to PHP - get mail adress from MySQL - send?
Hi all,

this is the challenge:

1) Our faculty at the college where I'm employed includ

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash