Questions tagged [http-request]

Use it for questions about HTTP requests, sending and receiving requests, status codes and more.

Filter by
Sorted by
Tagged with
0 votes
2 answers
94 views

hook_menu_get_item_alter() needs to give a 404

How can I throw a 404 error from within hook_menu_get_item_alter()? If I call drupal_not_found() then it keeps calling itself, and I don't know an other way to do this.
2 votes
0 answers
93 views

Getting An AJAX http error occured when updating modules

I recently staring getting a "An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://192.168.1.20/alan_page/authorize.php?batch=1&id=67&op=do ...
4 votes
2 answers
1k views

drupal_http_request and stream_socket_client

The D7 core function drupal_http_request uses the stream_socket_client() php function. For many serious web hosters, sockets and stream_sockets functions are a security bad practice and most of them ...
2 votes
1 answer
2k views

AJAX returns response code 200, and displays error messages in callbacks

I'm running Drupal 7.34 with quite a few modules (relevant because unfortunately I did not notice when the problem first started and it would take ages to look through them all one by one) and I have ...
2 votes
1 answer
1k views

Font Awesome not working when using HTTP

We have 2 subdomains for a website in order to test our development before moving to production. This is our structure: subdomainA.mysite.com subdomainB.mysite.com mysite.com When I enter to ...
0 votes
0 answers
95 views

How to investigate drupal_http_request replying 'connection timeout'? [duplicate]

Suddenly, my drupal 7 website showed some problem: not able to connect facebook, not able to send mail, not able to contact captcha server. Investigating, i found out that drupal_http_request is ...
0 votes
1 answer
73 views

Google Analytics Reports with Background Process module (non-blocking http request)

Using Google Analytics Reports module latest version 7.x-3.0-beta2. I wanted to make this module to make requests in non-blocking fashion. Standard drupal makes it blocking fashion, which slows things ...
1 vote
1 answer
360 views

How do I get request parameters when using fragment AND query with drupal_goto

I was successful in using fragment with drupal_goto, but when I use it AND query, I am not able to get the request parameters using $_GET from the query. I can see the request parameters in the URL,...
1 vote
2 answers
837 views

drupal_http_request times out on Google Maps geocoding URL

When I navigate to http://maps.google.com/maps/api/geocode/json?address=1200+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false (the Google Maps Geocoding API test address) in my browser (Chrome)...
1 vote
0 answers
625 views

Response object for Drupal HTTP Request

We are using the drupal_http_request function to send some data to salesforce. We've been told that one of the fields is being cut off and that they are receiving incomplete data. When I examine the ...
1 vote
0 answers
36 views

Question on Drupal and HTTP requests

I am using the drupal_http_request method and It seems to work well. When I use it, I send by POST from site A, a return URL (which would be site C) to site B that I am directing drupal to go to. So ...
3 votes
2 answers
9k views

How to show a node but return HTTP 404 response

I want to show an existing page(node) normally but return a HTTP404/410 etc instead of HTTP200. How can I do it? Is there any simple way to do it?
0 votes
1 answer
719 views

Drupal 7.27: 408 Request time out in Chrome browser [closed]

We are getting 408 request time out errors in Chrome browser only since the beginning of May. We have not been able to replicate the problem with any other browser. With one website we had a SSL ...
0 votes
2 answers
5k views

500 internal server error on a single node

This just happend randomly today. I tried to access a page, but it keeps giving me a 500 internal server error http://www.austravel.com/holiday-destinations/australia All the other pages are working ...
0 votes
1 answer
87 views

Ubercart/Securepages site breaks overnight!? Can't POST (login/add to cart)

This site seemingly broke overnight without any changes being made to the configuration.. this is a production site: https://www.skinnyboyswagclub.com/cardigan Add an item to your cart and watch the ...
0 votes
1 answer
211 views

Devel admin interface unreachable; or I broke my Devel?

Not sure what broke where, been using devel & love it. I enabled the Display $page array option, went, did stuff, came back to disable and when trying to load admin/config/development/devel either ...
4 votes
1 answer
1k views

Why does drupal_http_request return a 400?

I am having issues sending a POST via my module. In my browser's REST client I get a 200 with POST https://mydomain.com username=myuser&password=password1 So I know that the service is working ...

1 2
3