Questions tagged [httpconfiguration]

18 questions
49
votes
8 answers

httpd.conf on Windows: can't locate API model structure `php8_module`

I'm trying to install PHP, Apache and MySQL on Windows, following these guidelines. At some point, I am prompted to edit httpd.conf to point to my PHP installation. Both the apache directory and the php directory are under C:\: C:\Apache24 and…
Jason
  • 2,495
  • 4
  • 26
  • 37
9
votes
0 answers

Web API with OWIN. 1 HttpConfiguration object vs 2 HttpConfiguration objects

I can't really think of a better title but I will explain the scenario in detail. I have a .Net Web API that is being hosted by IIS. protected void Application_Start() { SwaggerConfig.Register(); …
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
8
votes
1 answer

Programmatically set Jetty configuration to increase allowed URL length

We're using embedded Jetty 9.3.1.v20150714 and ran into the problem in which our long query URL, combined with the other headers, were longer than those allowed. The solution seems straightforward: increase the requestHeaderSize in…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
6
votes
1 answer

HTTP/2 configuration not running after mod_http2 enabled and protocols set in conf file

HTTP/2 does not seem to be running after what seems to be a proper installation. I am running CentOS 7. I installed the latest version of Apache, version httpd-2.4.35-5.el7.x86_64, and have been trying to get HTTP/2 working. For this, I see that we…
tuffant21
  • 441
  • 3
  • 10
2
votes
1 answer

Dependecy injection for HttpConfiguration in Simple Injector

I am getting an error in my HelpController: The constructor of type HelpController contains the parameter with name 'config' and type HttpConfiguration that is not registered. Please ensure HttpConfiguration is registered, or change the …
1
vote
1 answer

Java Spring Boot Login and Role Issues

I'm writing a basic Web App using Java Spring Boot and am currently having issues with the roles of my users in my database and access to different parts of the app. The users can either have the role "ADMIN" or "USER". The only difference between…
1
vote
1 answer

Is it safe to dispose HttpConfiguration?

My CA2000 analyzer ("Dispose objects before losing scope") tells me to dispose of the HttpConfiguration instance once I've done customizing OWin's IAppBuilder. I tried to do just that and everything works suspiciosly fine. MSDN doesn't tell anything…
AgentFire
  • 8,944
  • 8
  • 43
  • 90
1
vote
0 answers

Change global asp.net WebApiConfig before request

I've got a C# Web-API and at Application_Start() i configure the routes, formatters and cors domains. My problem is, that based on the request-origin, I have to add more domains to the cors-domains. (e.g. if the request comes from 123.com there are…
kappadoky
  • 321
  • 2
  • 12
1
vote
0 answers

How to use HTTP verbs for routing in HttpConfiguration class instead of explicit action names?

I have a basic asp.net self host app that makes use of the HttpConfiguration class and includes this route: config.Routes.MapHttpRoute( name: "login", routeTemplate: "login", defaults: new { controller = "Login", action = "Get" } ); i…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
1
vote
0 answers

HttpConfiguration is missing MVC

I've got error: The Type or Namespace name "HttpConfiguration" is missing Honestly i dont konow what to do now.. I have download all files from server once again and nothing.. Please, help :/ namespace Europilka { public static class…
Shagohad
  • 361
  • 1
  • 10
  • 20
1
vote
0 answers

using xampp on windows7 with varnish

I am using xampp on window7 with varnish. My requirement is to redirect all requests from localhost/folder1 to localhost/folder2 I have tried to do this from varnish using probe reference but with no luck. so I have tried with apache configuration…
Mahesh Budeti
  • 374
  • 1
  • 16
1
vote
1 answer

Which HttpConfiguration object do I need to access to create a custom HttpParameterBinding?

In this post, Mike Wasson states: "Besides ParameterBindingAttribute, there is another hook for adding a custom HttpParameterBinding. On the HttpConfiguration object" But I have three HttpConfiguration objects in my Web API app, namely: public…
0
votes
0 answers

Why isn't my app calling localhost:3000 as mentioned in proxy.config.json?

I am trying to call an API at localhost:3000/rooms. So I created a file named proxy.config.json inside the src folder like this: { "/rooms": { "target": "http://localhost:3000", "secure": false } } I also changed this code in…
Thug Life
  • 87
  • 10
0
votes
0 answers

Run cypress in Jenkins docker container

I have this problem since two weeks till now. Kindly advise what to do with an error like HTTP PROXY configuration and no local issuer certificate. I just wanted to run my cypress test from git repo and automate the execution
Jhenylyn
  • 1
  • 3
0
votes
1 answer

Mulesoft dynamic http routing based on the input

I am new to mulesoft 4.4, I can to send http request to url xyz with one http_request_configuration, but I need to select application url dynamically based on the users input payload (kind of http routing with different host), I don't know how to…
1
2