Questions tagged [http-request]

HTTP Request is a message within a request/response sequence, according to HTTP specification. May also refer an HttpRequest class in software frameworks and libraries that automates relevant functionality

From W3C specification:

A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.

    Request       = Request-Line              ;
                    *(( general-header        ;
                     | request-header         ;
                     | entity-header ) CRLF)  ;
                    CRLF
                    [ message-body ]          ;

See also:

355 questions
0
votes
2 answers

Values in the url is get or post?

I just wanted to know the values which I pass in URL are of Get type or Post type.
शेखर
  • 17,412
  • 13
  • 61
  • 117
0
votes
3 answers

Java - Perform a http Request POST and GET on the same connection

I have something I am trying to achieve. I have a web application running on my localhost on port 8080. I have a HTTP Server running on localhost:9005. I have a JSP form that passes info to a servlet java class, that in turn performs the HTTP post…
babb
  • 423
  • 2
  • 15
  • 38
0
votes
1 answer

monitor HTTP requests of external website

I want to write a script generator based on whats happening on the website, and for that I have written javascript - ajax based script generator, where on every page i do include the js file and within function block of page where page is submited I…
0
votes
1 answer

HTTP body post in android

I am new to android development. In my application I have to use HTTP body post. But I'm getting an error. Here is my code: HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://67.64.238.61:8182/websearch"); try…
Santanu123
  • 1
  • 1
  • 1
0
votes
1 answer

Simulate clicking a submit button in Java

I am writing the program in Java, and i want to fill out the specified fields of form, simulate submit clicking, so get the result page. I am testing my idea on the url http://stu21.kntu.ac.ir/Login.aspx that have two fields txtusername and…
Hossein Mobasher
  • 4,382
  • 5
  • 46
  • 73
0
votes
3 answers

Servlet requests and window.location.href

I have a java servlet that sets a request attribute which is served for a particular page. On that page, there is some javascript to re-direct to a new page with window.location.href= ... Will the request attribute be available in the redirected…
JagWire
  • 269
  • 2
  • 16
0
votes
1 answer

PHP Get XML from Remote URL with Authentication - 403 Error

I have a URL which gives an xml output. It requires a username and password which I can access through a browser using the format: http://username:password@url.com However when I try to access it through a php file I get a 403 forbidden: $url =…
David Cahill
  • 419
  • 2
  • 5
  • 9
0
votes
1 answer

CURLOPT POSTFIELDS not attatching data to HTTP Request

I've been trying to send something via HTTP request, using the CURLOPT POSTFIELDS and the data doesn't seem to transfer. Am I missing something? function sendTestCase($caseArgs){ try{ $ch = curl_init(); …
BlackHatSamurai
  • 23,275
  • 22
  • 95
  • 156
0
votes
2 answers

While calling webservice getting "Missing payload for POST" error

I am calling webservice and constantly getting Missing payload for POST error.. I dont know what is wrong with the code.. I have Called authentication webservice and receiving Accesskey.. And passing that accesskey to the other webservice from where…
Kruti Mevada
  • 517
  • 5
  • 7
  • 21
0
votes
2 answers

PHP Http Requests & Pecl/Pear on Hosting Servers

I am new to PHP and web development. I am trying to build a basic Facebook application. Hence it is necessary to use Http Requests to get user data from Graph API within Facebook. I checked how to make requests with PHP yet I saw that Http request…
msharpp
  • 379
  • 1
  • 6
  • 20
0
votes
2 answers

Tool to send request and receive response

I am trying to inspect some html, which is not displayed correctly in IE. when I look at the html in IE and FF, they are both different slightly and this might be causing the issue. I want to grab html returned from the server and thus do not want…
Hell Boy
  • 899
  • 5
  • 12
  • 22
0
votes
2 answers

How to controll access for a response to a http request ? (server side & client side)

Excluding the same origin policy that all major browsers have and the syncrhronised token pattern (would be a pain in the ass to tokenise all requests), how would you check if the request is sent directly from my user interface and not through a…
Cata Cata
  • 166
  • 1
  • 9
-1
votes
1 answer

GET /HTTP/1.1 not working in command prompt. It's saying "Invalid command"?

Click here to see the image . I tried a lot of time doing this but can't get it.
bUff23
  • 332
  • 2
  • 16
-1
votes
1 answer

I get 400 bad request from some websites but not others with HEAD request

I am making a banner grabber and have finally ironed out the HEAD / HTTP/1.1 request according to the guidelines, but some websites still give me '400 Bad Request' why is that? Here is my request: "HEAD / HTTP/1.1\r\nHost: target:port\r\nConnection:…
Jonah Fleming
  • 1,187
  • 4
  • 19
  • 31
-1
votes
1 answer

Android java.lang.NoSuchMethodError: No virtual method

I would like to send a post request to send data to my worksheet by Google Form I use Android Studio, in my android project I have an error when I try to execute DefaultHttpClient object I get : --------- beginning of crash 10-26 16:19:08.749 …
mc_marad
  • 179
  • 1
  • 1
  • 10
1 2 3
23
24