Questions tagged [httpservice]

HTTPService is a Flex component used for HTTP requests

240 questions
31
votes
8 answers

HTTP Basic Authentication with HTTPService Objects in Adobe Flex/AIR

I'm trying to request a HTTP resource that requires basic authorization headers from within an Adobe AIR application. I've tried manually adding the headers to the request, as well as using the setRemoteCredentials() method to set them, to no…
Bob Somers
  • 7,266
  • 5
  • 42
  • 46
30
votes
2 answers

How to fix AXIOS_INSTANCE_TOKEN at index [0] is available in the Module context

I am using Axios in my project to call some third-party endpoints. I don't seem to understand the error Nest can't resolve dependencies of the HttpService (?). Please make sure that the argument AXIOS_INSTANCE_TOKEN at index [0] is available in…
techstack
  • 1,367
  • 4
  • 30
  • 61
10
votes
4 answers

HTTP The service is starting or stopping. Please try again later error on windows 7

I used following command to stop the HTTP service net stop http /y And I got following error message: The service is starting or stopping. Please try again later. Now the HTTP service is in a in-between state. Its neither stopped nor starting.…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
8
votes
3 answers

Set JSON content-type on s:HttpService in flex

I am trying to set the json content type on httpservice to make REST service return the json data. When I add the content type in fiddler all works fine so the problem lays in flex application, not in the web-service. But the code below does not…
igu
  • 231
  • 2
  • 8
5
votes
4 answers

Two different HTTPService classes in Flex

Why are there two different HTTPService classes in Flex? this and this And the second one inherits the first one. Why couldn't there be a single class combining the two?
simplfuzz
  • 12,479
  • 24
  • 84
  • 137
5
votes
1 answer

How to access HTTP response body on failure?

How can I access the HTTP response body when a web services call fails and my "fault" event listener is call? I can see the original message but can't find a way to access the response. Here's how I call the webservice var connect: HTTPService = new…
Dwight Kelly
  • 1,232
  • 2
  • 11
  • 17
3
votes
1 answer

Nestjs HttpService error handling with AxiosRequestConfig's validateStatus function

I need to handle http errors status code (such as 401, 500, etc) which can occur when consuming an external service using HttpService (HttpModule of Nestjs). Here is the implementation i am working on: import { Injectable } from…
Alcastic
  • 374
  • 5
  • 15
3
votes
1 answer

Adobe AIR Flex/Actionscript URLLoader vs HTTPService (Async tokens and Windows proxy settings)

I'll try and keep this short. I've written an AIR app that uses an HTTPService to request various bits of data. There can be multiple services firing at once, so I use the standard AsyncToken behaviour to set variables that can later be used to…
Marc
  • 104
  • 1
  • 10
3
votes
1 answer

Flex 4 - Sending string (such as JSON) using HTTPService

When I use HTTPService.send(paramter) as a POST request, the web server does not appear to see variable "parameter" if it is a string. The server sees the parameter if it's an Object, but I'm looking to use something like…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
3
votes
2 answers

HTTPService/ResultEvent with Flex 3.2 versus Flex >= 3.5

through a design decission or what-so-ever Adobe changed the content of the ResultEvent fired by a HTTPService Object. Take a look at following example: var httpService:HTTPService =…
Julian
  • 71
  • 1
  • 4
3
votes
1 answer

Rbx.Lua - Why can't I store a .txt file as a table?

I have a python-based web server running on my raspberry pi that web scrapes trade currency rates on Roblox. If you don't know what I just said, all you need to know is that I am gathering numbers that change on a certain webpage. I want to import…
Rontron
  • 3,963
  • 7
  • 26
  • 44
3
votes
1 answer

Starting Wicket web application with OSGi HTTP Service

I'm trying to start a Wicket Application using Felix implementation of OSGi HTTP service, for that I just register the service using WicketServlet with applicationClassName parameter: props.put("applicationClassName",…
Jaime Soriano
  • 7,309
  • 2
  • 33
  • 45
3
votes
3 answers

To execute Flex cleanup function when browser is closed by user

I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it? Thanks in advance for any…
tomato
  • 5,644
  • 13
  • 43
  • 48
3
votes
0 answers

Multipart/form-data Flex HTTPService uploading a file

I am new to Flex and also new to writing a client for a web service. My question is more about Flex (Flash Builder 4.5) APIs, what APIs to use. I want to access a web service, and create a Flex / AIRwrapper for it, which anyone can use. Here is the…
3
votes
1 answer

Setting custom response headers for static resources served in OSGi environment

The task that we are trying to solve is to set custom response headers for static resources (e.g. Cache-Control) that are exposed in OSGi environment using HttpService.registerResources() method. What is the best away to achieve this goal given the…
Volodymyr Tsukur
  • 275
  • 1
  • 3
  • 10
1
2 3
15 16