Questions tagged [http-request2]

The HTTP_Request2 package is a rewrite of HTTP_Request in PHP5 and makes it easier for PHP applications to perform HTTP requests.

As per the documentation:

HTTP_Request2 package provides an easy way for PHP applications to perform HTTP requests. It supports a large subset of Hypertext Transfer Protocol features, and can be used for the following:

  • Working with web services (numerous PEAR packages in Web Services category are using HTTP_Request2 under the hood);
  • Checking the validity of web links;
  • Grabbing and parsing remote web pages;
  • Automated form submission.

This was introduced with the PHP5 rewrite of the HTTP_Request module. The latest stable release is 2.3.0, released on 2016-02-13. It can be easily installed using the following command:

pear install HTTP_Request2
22 questions
0
votes
0 answers

i am getting http reponse code 307 Temporary Redirect while trying to get access token from google access token endpoint with HTTP_Request2 Library

I am getting HTTP response code 307 Temporary Redirect while trying to get access token from google access token endpoint with HTTP_Request2 Library //$accessTokenExchangeUrl = "http://accounts.google.com/o/oauth2/token"; //here it is access token…
0
votes
0 answers

Error HTTP_Request2 in Tesco Api php script

Note: Beginner to php and programming on web databases. I am trying to implement the Tesco API on the 000webhost webhosting site. I've copied the PHP script at the Tesco labs page, put it in the database at 000webhost where I call it with the…
m_cheah
  • 131
  • 1
  • 1
  • 8
0
votes
2 answers

Access json object values with PHP

I have a php script that pulls in json data like below: $request = new HTTP_Request2('https://fakeurl.com/stuff', HTTP_Request2::METHOD_GET); $request->setHeader('Authorization', 'Bearer ' . $access_token); $response = $request->send(); $data =…
gibsonsg
  • 35
  • 2
  • 11
0
votes
1 answer

While installing HTTP_Request2 pacakage(php) in azure raises the issue

I had create a webapp(of php) in azure now i want to install packages HTTP_Request2.While am installing it raises error
Phani Rao
  • 167
  • 1
  • 12
0
votes
1 answer

PHP Azure SDK Service Bus returns Malformed Response

I'm working on trace logger of sorts that pushes log message requests onto a Queue on a Service Bus, to later be picked off by a worker role which would insert them into the table store. While running on my machine, this works just fine (since I'm…
0
votes
1 answer

Login to Hotmail with PHP http requests

Here is a similar question already. I am trying to simulate a browser like behaviour of my script to login into hotmail using http requests and cookies. I found this link which shows how to login to facebook using http requests in c#. I am using…
0
votes
1 answer

Make relative url get request with HTTP_Request2

On the client side I have a get request called by $.get with jQuery "modify_user.php?uid=SomeUserId" with this XMLHttpRequest, I get some userID and load the form. The problem is that in the client side I do not have my user id, in case I want to…
Gonzalo.-
  • 12,512
  • 5
  • 50
  • 82
1
2