Posted on June 27, 2008 by Guillaume
I received several emails about my phpWebRequest php class, asking how we can create HTTPs POSTÂ request. Before I answer this I think it’s important to understant the HTTP authentication mechanism.
There are 2 kinds of authentication: Basic and Digest. I gonna describe only Basic since it’s very is to use in the phpWebRequest class.
Basic is the [...]
Filed under: Dev, php | Tagged: Authentication, Basic, HTTP, php, phpWebRequest, Request | 1 Comment »
Posted on June 12, 2008 by Guillaume
This post is actually a follow-up to my last one called http post streaming where I tried to create a php class that provides a way to send a HTTP POST request. I recoded the class and added new features (e.g. a way to read the body of an HTTP request, a dynamic way of [...]
Filed under: Dev, php | Tagged: HTTP, php, POST, socket, Stream, webRequest | 7 Comments »
Posted on June 10, 2008 by Guillaume
Yesterday I’ve been asked by a friend how we can easily http stream data from php. That was a really intersting question because it can be very useful in some case (e.g. when working with EDI). So I just made him a proof of concept.
I used socket to generate a POST HTTP requestÂ
<?php
class PostRequest{
//SERVER
var $address;
var [...]
Filed under: Dev, php | Tagged: php, POST, socket, Stream, webRequest | 2 Comments »