Questions tagged [urlrequest]
247 questions
4
votes
3 answers
When POSTing a form with URLRequest, how to include cookies from browser session?
(With reference to this answer:)
When I POST with a URLRequest, does it automatically include cookies from the browser session in which Flash is hosted? If not, how can I make it include them, or if necessary retrieve them and include them myself?

Eric
- 11,392
- 13
- 57
- 100
4
votes
0 answers
RxAlamofire cannot use with URLRequest
I'm using RxAlamofire to create my observable. I have build the URLRequest. normally with Alamofire we can use like Alamofire.request(urlRequest) but seem with RxAlamofire I can not use RxAlamofire.requet(urlRequest)
Here is my function
func…

Lê Khánh Vinh
- 2,591
- 5
- 31
- 77
4
votes
4 answers
How to bypass "Adobe Flash Player has stopped a potentially unsafe operation."?
I have created an advent calendar for the blog of a friend, and to fetch/get/download the gifts of each day, the flash animation requests a file located at "http://domain.com/folder/etcetc/gifts.php".
While creating the file in Flash CS4 and trying…

Phoexo
- 2,485
- 4
- 25
- 33
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,664
- 8
- 45
- 59
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…

Theo Mavrakis
- 121
- 7
4
votes
2 answers
Flash Builder URLRequest local path not resolving
This is my basic folder structure:
https://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
3 answers
URLSession sends GET request instead of POST
That's how I'm doing a POST request
var request = URLRequest(url: url)
let methodString = mehtod.rawValue
request.httpMethod = "POST"
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
request.addValue("application/json",…

BergP
- 3,453
- 4
- 33
- 58
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
- 101
- 1
- 2
- 7
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,488
- 13
- 34
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
- 21,522
- 19
- 91
- 167
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
- 9
- 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,945
- 26
- 44
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
- 11,807
- 4
- 36
- 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