Questions tagged [urlrequest]

247 questions
0
votes
1 answer

iOS - Is it possible to send in continuos connection request to a server?

I have a app code that sends in request only when the app opens. However I need to have a continuos access to the file in the server which will be updated every second. -(void)viewDidLoad { [super viewDidLoad]; NSURL *myurl = [NSURL…
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
0
votes
1 answer

xcode 4 stream video check

i am unable to solve this problem and i can´t find any solution elsewhere. I am playing the streaming video from url. But want to check if the url contains any video. Does anyone know how? To be clear i do not want to download the video and then…
Radim Halfar
  • 147
  • 1
  • 12
0
votes
1 answer

Access Stage object (textbox) within a Custom Class

I'm currently trying to add the resulting XML (xmlResult) to a textbox that is on the stage. I did try using MovieClip(root).[instancename].text = ..... however it didn't work - null object reference? Any suggestions? Thanks! package { public…
Jonathan
  • 61
  • 1
  • 6
0
votes
2 answers

Is it possible to use a var in a URLRequest

During development I have to test using several different hosts. It is a pain to have to change the IP address everywhere I use navigateToURL or in an mx:HTTPService. I would like to set a var with the IP... public var hostIP:String =…
user278859
  • 10,379
  • 12
  • 51
  • 74
0
votes
2 answers

Post values to a URL using Flash

I'm dipping my toes into Flash development and wondered how to post some variables to a URL. Let's say the user has played a Flash game, packaged as an EXE or SWF embedded in HTML stored on the user's computer, not from some webpage, and would like…
NeilC
  • 1,380
  • 1
  • 17
  • 36
0
votes
1 answer

Converting an Actionscript 2 Script to an AS3 Equivalent

I have the following code to open a document through a separate window (through a button action) in AS2: mapSym_btn.onRelease = function() { getURL ("https://myPortal.html", "_blank")} Can anyone show me how to get the same results in AS3? I'd…
0
votes
2 answers

TinyURL popup opening instead a tab

I gotta an uncommon problem over here. I have to call the tinnyURL service to shorten my URL, it is working fine. After that, I have to call another tab, but for some reason, it calls a pop-up. I'm assuming that the problem is when I call the…
marceloduende
  • 719
  • 2
  • 6
  • 15
0
votes
1 answer

Swift do/try/catch - accessing API response in catch block

Say I'm making an API call like this: Task { do { let request: Request = .postLogin(email: email, password: password) let response = try await URLSession.shared.decode(request) // store token if received …
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
2 answers

Problem encoding JSON for a UrlRequest in Swift

I'm trying to set up an API service. I have a simple login call that looks like this: enum HttpMethod: Equatable { case get([URLQueryItem]) case put(Data?) case post(Data?) var name: String { switch self { case .get:…
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
0 answers

How to make a Data representation from a list of parameters for a POST method (Swift)

Say I have the following API Service: enum HttpMethod: Equatable { case get([URLQueryItem]) case put(Data?) case post(Data?) var name: String { switch self { case .get: return "GET" case .put: return "PUT" …
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
1 answer

I want to use UrlRequest to post images on local server, but it's making my Kivy android app crash

I'm new on programming apps, but i'm trying to creat a mobile app (android) using python code (kivy). The mobile app takes pictures and these pictures have to be upload to a local server i have in my computer. The thing is that everytime I try to…
0
votes
1 answer

How do you make a request to OpenSky (flight tracker)

I am making a flight tracker that will track planes within certain areas around airports. This is my code so far (a modified tutorial) #import import requests import json import pandas as pd #square…
wvzack
  • 1
  • 3
0
votes
0 answers

kivy app works with wifi but not with mobile net like 4G

i have an kivy app who works with wifi but not with 4G, i have atached the internet permission in .spec: android.permissions = android.permission.INTERNET, (name=android.permission.WRITE_EXTERNAL_STORAGE;maxSdkVersion=18), and it works! But just…
0
votes
1 answer

Why does the url request not give out the response?

I use the following program to get the url response, but only the following url cannot correctly give out the response. I have waited for a long time, but it still cannot finish the running. How can I solve it? import re from bs4 import…
dragontim
  • 3
  • 2
0
votes
0 answers

How to show progress of multiple images while uploading on server in UITableViewCell?

Requirement Application which upload multiple images on server with parameters.Need to show progress of each images in UITableViewCell Implemented till now Able to upload multiple images on server. Shown image in UITableViewCell.Put static label for…
Birju
  • 1,132
  • 11
  • 32