Unable to check the http example

I am using RN171 wifi shield.
and trying to run the below code. but it was giving 400 Bad request.
Please help me to fix.

Code:

#include <Arduino.h>
#include <SoftwareSerial.h>
#include <WiFly.h>
#include “HTTPClient.h”

#define SSID “hotspot”
#define KEY “sami@123”
// WIFLY_AUTH_OPEN / WIFLY_AUTH_WPA1 / WIFLY_AUTH_WPA1_2 / WIFLY_AUTH_WPA2_PSK
#define AUTH WIFLY_AUTH_WPA2_PSK

#define HTTP_GET_URL “http://httpbin.org/get?hello=world
// #define HTTP_POST_URL “http://httpbin.org/post
// #define HTTP_POST_DATA “Hello world!”

// Pins’ connection
// Arduino WiFly
// 2 <----> TX
// 3 <----> RX
SoftwareSerial uart(2, 3);
WiFly wifly(uart);
HTTPClient http;
char get;

void setup() {
Serial.begin(9600);
Serial.println("------- WIFLY HTTP --------");

uart.begin(9600); // WiFly UART Baud Rate: 9600
// Wait WiFly to init
// delay(3000);

// check if WiFly is associated with AP(SSID)
if (!wifly.isAssociated(SSID)) {
while (!wifly.join(SSID, KEY, AUTH)) {
Serial.println("Failed to join " SSID);
Serial.println(“Wait 0.1 second and try again…”);
delay(100);
}

wifly.save(); // save configuration,
}

Serial.println("\r\nTry to get url - " HTTP_GET_URL);
Serial.println("------------------------------");
while (http.get(HTTP_GET_URL, 10000) < 0) {
}
while (wifly.receive((uint8_t )&get, 1, 1000) == 1) {
Serial.print(get);
}
/

Serial.println("\r\n\r\nTry to post data to url - " HTTP_POST_URL);
Serial.println("-------------------------------");
while (http.post(HTTP_POST_URL, HTTP_POST_DATA, 10000) < 0) {
}
while (wifly.receive((uint8_t *)&get, 1, 1000) == 1) {
Serial.print(get);
}

if (wifly.commandMode()) {
Serial.println("\r\n\r\nEnter command mode. Send “exit”(with \r) to exit command mode");
}
*/
}

void loop() {
int c;
while (wifly.available()) {
c = wifly.read();
if (c > 0) {
Serial.write((char)c);
}
}

while (Serial.available()) {
c = Serial.read();
if (c >= 0) {
wifly.write((char)c);
}
}
}

Serial Output:
Try to get url - http://httpbin.org/get?hello=world

HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 02 Jul 2015 09:02:44 GMT
Content-Type: text/html
Content-Length: 166
Connection: close

400 Bad Request

400 Bad Request


nginx *CLOS*

and trying to run the below code. but it was giving 400 Bad request.

i think the 400 bad request indicates you have connected with the server, but the server doesn't understand what you are requesting with the below line.

"http://httpbin.org/get?hello=world"

Will you please help me to get response from any server that will show that webpage? Suppose I will try to get the URL http://httpbin.org/get?hello=world

and in serial port it will show the page:

{ "args": { "hello": "world" }, "headers": { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8", "Accept-Encoding": "gzip, deflate, sdch", "Accept-Language": "en-US,en;q=0.8", "Cache-Control": "max-age=0", "Host": "httpbin.org", "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" }, "origin": "104.236.124.14", "url": "http://httpbin.org/get?hello=world" }