Questions tagged [urlrequest]

226 questions
4
votes
2 answers

Can a SWF (using URLLoader) access HTTPS webservice?

I have a fla (using ActionScript 3.0) I am compiling in Flash. I am using URLRequest and URLLoader to access a http webservice. var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest("http:test.webservice.com"); …
dan
  • 5,386
  • 7
  • 42
  • 54
4
votes
0 answers

SoundCloud POST Comment Not Authorized

[UPDATE] Problem fixed. Working code and method updated below! So, I am trying to post a comment to a SoundCloud track using the SoundCloud api in AS3. The documentation can be found here: http://developers.soundcloud.com/docs/#comments And my code…
4
votes
2 answers

Flash Builder URLRequest local path not resolving

This is my basic folder structure: http://i.stack.imgur.com/l1YnV.jpg My code goes like this: private var xmlLoader:URLLoader=new URLLoader(); private var url:URLRequest=new URLRequest("../src/NPClist.xml"); xmlLoader.load(url); I get the…
manabk
  • 55
  • 2
  • 6
3
votes
1 answer

Check If Image URL Leads To Real Image in Python

So I am building a Python script to download images from a list of urls. The script works to an extent. I don't want it to download images that have urls that don't exist. I take care of a few images with some usage of status code but still get bad…
user9245495
3
votes
2 answers

Cloud Functions for Firebase Error: Forbidden

I am trying to send multipart/form-data through URLRequest on my app to Cloud Functions for Firebase. And to test if my cloud function and my app are connected, I created a test function and deployed it: function test(data, callback) { …
AlexBains
  • 195
  • 2
  • 14
3
votes
2 answers

let url = URL(string: item)! returning nil in swift

Really cannot figure this one out, the URL prints and is not equal to nil, and it works in the browser when I paste it in. Any ideas? import UIKit class WebViewController: UIViewController { var postLink: String = String() @IBOutlet weak…
Noah Schairer
  • 101
  • 1
  • 6
3
votes
1 answer

swift 3 urlRequest session.dataTask not firing

I am trying to get stock quotes from Yahoo using Swift 3. Although there are some decent tutorials on Swift 2, none of them seem to translate well to Swift 3. The issue I have at the moment is that in the code below, the session.dataTask is never…
Michael Moulsdale
  • 1,408
  • 13
  • 32
3
votes
1 answer

iOS swift post request with binary body

I want to make a POST request from iOS (swift3) which passes a chunk of raw bytes as the body. I had done some experimenting which made me thought the following worked: let url = URL(string: "https://bla/foo/bar")! var request = URLRequest(url:…
Travis Griggs
  • 18,930
  • 17
  • 76
  • 137
3
votes
1 answer

What is the difference between URLLoader and URLRequest in Actionscript?

What is the difference between URLLoader and URLRequest in Actionscript?
Heckflosse_230
  • 461
  • 2
  • 8
  • 18
3
votes
2 answers

Actionscript 3: Memory Leak in Server Polling Presentation App

I'm building a remote presentation tool in AS3. In a nutshell, one user (the presenter) has access to a "table of contents" HTML page with links for each slide in the presentation, and an arbitrary number of viewers can watch the presentation on…
justinbach
  • 1,895
  • 26
  • 42
3
votes
3 answers

SSL Client Side Certificate authentication in Adobe AIR

I'm trying to use a RESTful web service in Adobe AIR. The service uses client side certificates for authentication, thus I need to set the cert and private key used by AIR/Actionscript's URLRequest when connecting to this RESTful service. Is…
nategood
  • 10,931
  • 4
  • 32
  • 44
3
votes
2 answers

URLRequest with DELETE method

Need to find a way to send a delete method from Flash Player (Flex). Currently it's not done by default (except for from AIR), but I am sure someone has augmented the URLRequestHeader to get it to work properly. I've tried this, it isn't…
jonbcampos
  • 191
  • 10
3
votes
1 answer

UIWebView is not loading a page

I got a UITabBarController and one of the bar items is a Navigation Controller with some buttons on it. One of the buttons opens up a urlRequest and load it in a UIWebView. NSURL * url = [NSURL URLWithString:myUrl]; NSURLRequest * urlRequest =…
Tomer
  • 53
  • 3
3
votes
4 answers

How to play a sound in Actionscript 3 that is not in the same directory as the SWF?

I have a project with a bunch of external sounds to a SWF. I want to play them, but any time I attempt load a new URL into the sound object it fails with either, Error #2068: Invalid Sound or raises an ioError with Error #2032 Stream Error //…
tronster
  • 113
  • 2
  • 2
  • 9
2
votes
1 answer

Can't set "Content-Type" for URLRequest in as3

I'm trying to set Content-Type for URLRequest headers to "application/json". Here is the code: var request:URLRequest = new URLRequest("http://localhost"); request.contentType = "application/json; charset=UTF-8"; But as you can see on screenshot…
Andrei
  • 516
  • 5
  • 15
1
2
3
15 16