Questions tagged [httprequest]

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:

7773 questions
2
votes
3 answers

How to send data (Angular 2)?

I'm trying to send credentials via http request using Angular 2, but Angular 2 Http get request does not send credentials. What am I doing wrong? var creds = "username=" + this.username + "&password=" + this.password; var headers = new…
Ignat
  • 3,727
  • 6
  • 16
  • 17
2
votes
1 answer

method does not support a request body: GET/POST

Cannot send GET or POST reply request to server, getting following error java.net.ProtocolException: method does not support a request body: GET/POST What I try to do is to read site content and calculate a simple math equation which is being…
PYPL
  • 1,819
  • 1
  • 22
  • 45
2
votes
1 answer

How to prevent access to a web application through a HttpWebRequest?

I have web application which was developed in .NET 3.5, hosted on Windows server. Outside people are accessing my web application by creating HttpWebRequest POSTs and passing the browser information along with necessary input values. How to restrict…
2
votes
1 answer

receiving X509 client certificates in web requests

I am trying to send an X509Certificate from an Http Handler to a web service that will receive and read the certificate to authenticate the user. I know the certificate is sending fine; I have a tester that lets me look at the HttpWebRequest before…
YYY
  • 21
  • 4
2
votes
0 answers

How to send image using base64 string in raw http header?

I have a php page that accept an image and it will save the image on the server. I have installed a plugin called openHTTPRequester on my firefox which allows me to send raw http request. The problem is why the php page can read my image when i send…
dramasea
  • 3,370
  • 16
  • 49
  • 77
2
votes
1 answer

downloading a zip file from URL in wcf c#

I am trying to download a zip folder from a url. The url points to a library in Sharepoint containing a document set. If the url is pasted in browser it downloads a zip file. While trying to do the same from code i am able to download only 32426…
TheCoder
  • 181
  • 4
  • 12
2
votes
1 answer

How do I pass event arguments to python scripts that run in response to Splunk alerts?

This is my script but it is not working as it is saying that sys.arg[8] is out of index range. Splunk: Your alert can trigger a shell script or batch file, which must be located in $SPLUNK_HOME/bin/scripts. Use the following attribute/value…
Theo
  • 21
  • 5
2
votes
3 answers

How to get array from Http Post in a Restful Web Service?

I have a controller for AngularJS Framework. I use a Http Post Request to send an array to a server. How to get this array in a java method? This is my controller var app = angular.module('myApp', []); app.controller('myCtrl', function($scope,…
legolas07
  • 79
  • 1
  • 7
2
votes
3 answers

c# stop a streamreader after a few seconds. Is this possible?

I have web request and i read information with streamreader. I want to stop after this streamreader after 15 seconds later. Because sometimes reading process takes more time but sometimes it goes well. If reading process takes time more then 15…
Erkan BALABAN
  • 1,347
  • 1
  • 13
  • 20
2
votes
1 answer

RestTemplate DELETE throws HttpClientErrorException: 405 Method no Allowed

I am writing client app for https://api.ai service and use org.springframework.web.client.RestTemplate for my HTTP requests. The problem is that DELETE requests always return error 405, private static final String URL_INTENTS =…
D. Sergeev
  • 2,285
  • 1
  • 13
  • 16
2
votes
3 answers

2 http requests on jmeter - each 50% of the time

I'm trying to create a jmeter script that sends 2 http requests(each with a different path). I managed to get it to send the requests randomly, but i also need it to send each request exactly 50% of the time. any ideas?
Noam Gur
  • 65
  • 11
2
votes
3 answers

Static resources versioning in servlet filter (adding an extra GET parameter)

im trying to implement filter which will somehow modify JS url from /script/script1.js to /scripts/script1.js?version=1.3.2 I've tried: Used response.sendRedirect("/scripts/script1.js?version=1.3.2") and I got ERR_TOO_MANY_REDIRECTS in browser…
2
votes
1 answer

Empty or too short HTTP Message

I'm having this same issue in my code, but I'm not passing addPostFile method. So I was wondering if I need to pass some others configuration to the request object. Any idea? Here is my code $request = new HttpRequest($myURL,…
Didzán
  • 21
  • 1
2
votes
1 answer

Compress an HTTP Request in java

I want to compress my HTTP request before sending it in java. how to do please ? I'm using JBoss4.2 as a Server
Marouane Gazanayi
  • 5,063
  • 6
  • 39
  • 58
2
votes
2 answers

Struts2 Action Form Data Maximum Size for Image Upload using Base64

I have a Struts2 action that receives a string containing an image in Base64 and another string for the image name. Everything works well for small sized images. But when I try to send a larger image, the Base64 and the image name strings are set to…
Raimundo
  • 605
  • 7
  • 21
1 2 3
99
100