I've now also added
[CODE=PHP]
$header['Connection']="keep-alive";
$header['Accept-Charset']="ISO-8859-1,utf-8;q=0.7,*;q=0.7 ";
$header['Accept']="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima ge/png,*/*;q=0.5";
$header['Content-Type']="applicatio n/x-www-form-urlencoded";
[/CODE]
and [CODE=PHP]curl_setopt($ch , CURLOPT_HTTPHEA DER,...
User Profile
Collapse
-
kad123 replied to Getting PHP to login somewhere (POST username and password) and then get the cookiesin PHPOk this is what I have:
[CODE=PHP]<?php
// Settings
$post['username']="mailbox@examp le.com";
$post['password']="pass";
$post['destination']="https://example.com/exchange/";
$post['flag']="0";
$post['forcedownlevel ']=0;
$post['trusted']="4";
$post['isUtf8']="1";
$url="https://example.com/exchweb/bin/auth/owaauth.dll";...Leave a comment:
-
kad123 replied to Getting PHP to login somewhere (POST username and password) and then get the cookiesin PHPSorry about the URLS and here is the php code:
[CODE=PHP]
<?php
$post['username']="mailbox@examp le.com";
$post['password']="passformailbo x";
$post['destination']="https://example/exchange/";
$post['flag']="0";
$post['forcedownlevel ']=0;
$post['trusted']="4";
$post['isUtf8']="1";
$url="https://example.com/exchweb/bin/auth/owaauth.dll";...Last edited by Atli; Nov 10 '07, 10:07 PM. Reason: Replaced real URL's with example. You forgot a few there at the top ;)Leave a comment:
-
kad123 replied to Getting PHP to login somewhere (POST username and password) and then get the cookiesin PHPThanks for the advice. I have done what should be done and i've run into problems
Basically, the MS Server is giving HTTP 400 error:
Code:print_r(curl_getinfo($ch)); : ( [ url] => https://example.com/exchweb/bin/auth/owaauth.dll [http_code] => 400 [header_size] => 157 [request_size] => 276 [filetime] => -1 [ssl_verify_result] => 0
Last edited by Atli; Nov 10 '07, 07:27 PM. Reason: Replaced real URL's with example and added [code] tags.Leave a comment:
-
Hi
Well I can see an IMAP calendar folder with but it seems empty (mabey the clients cant read the data because it is in a different format)
I could use LDAP but i dont know a lot about that in regards to PHP or Exchange
Finally I could just parse the html but even Outlook Web Access Lite is very very complex unlike some calendars and I dont know much about I to login, get the cookies and then get the...Leave a comment:
-
kad123 started a topic Getting PHP to login somewhere (POST username and password) and then get the cookiesin PHPGetting PHP to login somewhere (POST username and password) and then get the cookies
Hi
I need an application to get some data but in order to access that page, you must be logged in (cookies). I need my PHP to login first, get the cookies and then use them to get the page i need?
Any suggestions?
Thanks in advance -
MS Exchange 2007 Calendar with PHP
Hey there
I would like to get the events of my mailbox calendar straight from MS Exchange. This can be with or without PHP (like XML exporting from OWA or other languages like ASP etc.). Can anyone guide me in the right direction.
Also, I cant install any software on the server.
Thanks in advance -
MS Exchange 2007 Calendar with ASP
Hey there
I would like to get the events of my mailbox calendar straight from MS Exchange. This can be with or without ASP (like XML exporting or other languages like PHP etc.). Can anyone guide me in the right direction.
Also, I cant install any software on the server.
Thanks in advance
No activity results to display
Show More
Leave a comment: