Questions tagged [urlrequest]

247 questions
1
vote
1 answer

What object (key-value) can I use for actionscript's URLRequest/Loader classes?

I am trying to get my Actionscript program to turn in a key-value (more specifically: a key, value1, value2) object into a server. I am doing the html request properly, but I'm not sure what kind of object to send; can anyone help? --Thanks
1
vote
2 answers

How can I prompt a user to open or save a PDF file returned by a .aspx file?

I have a Flex application that calls a .aspx page on our webserver, which builds a PDF or Excel File. Right now, I am using navigateToURL() to call the file, and this works fine when the output file is built successfully. However, if there is an…
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
1
vote
2 answers

Authorization Header not setting in Alamofire 5?

I am setting the basic auth token to my URLRequest and using Alamofire to execute. I set 3 headers, content, accept and auth...content and accept are visible in the network traffic but auth is not. It is available if i print the headers of the…
jwarris91
  • 902
  • 9
  • 24
1
vote
1 answer

URLSession returns script element still string encoded and escaped

I am making the below request to Youtube using URLRequest and URLSession. Most of the response looks fine, however I found that some of the script elements that are being returned have what seem to be escaped encoded characters such as { } [ ] = ' "…
1
vote
1 answer

Swfit URLRequest POST How to make a request with duplicated parameter keys

I'm currently working on a project which uses Inoreader APIs, and there is one required post request with duplicated parameter keys. https://www.inoreader.com/reader/api/0/edit-tag?a=user/-/state/com.google/read&i=12345678&i=12345679 As you can see…
steveluoxin
  • 419
  • 4
  • 14
1
vote
4 answers

how to send file through urlRequest from iOS(client-end)

Here is my REST API for uploading file- @api.route('/update_profile_picture', methods=['POST']) def update_profile_picture(): if 'file' in request.files: image_file = request.files['file'] else: return jsonify({'response': None,…
Natasha
  • 6,651
  • 3
  • 36
  • 58
1
vote
2 answers

Flex: post without showing

var url:String = "http://www.[yourDomain].com/application.jsp"; var request:URLRequest = new URLRequest(url); var variables:URLVariables = new URLVariables(); variables.exampleSessionId = new Date().getTime(); variables.exampleUserLabel =…
Writecoder
  • 613
  • 2
  • 8
  • 27
1
vote
1 answer

Kivy - How to update label from Urlrequest on_progress / screen refresh

My screens contain a message field which I want to update through the on_progress callback when invoking heavy duty rest calls. def restprogress(self, current_size, total_size): screen = App.get_running_app().current_screen …
1
vote
1 answer

Expiration of CachedURLResponse not working

I was trying to set custom headers for 'Cache-Control' to achieve a cache at client side(server side has 'Cache-Control: no-cache'). Trying to achieve following two major things. Response of some of the end points should be cached in memory…
1
vote
1 answer

400 error when downloading file with "Authorization" header

The server returning a json file that is: {"ctrl":{"code":400,"text":"Not valid Access token","ts":"2020-03-05T11:54:01.547Z"}} Code: public func startDownload(url: URL, pathURL: URL) { let accessToken: String! = "Bearer…
Kuvonchbek Yakubov
  • 558
  • 1
  • 6
  • 16
1
vote
0 answers

How to add followRedirect or not in Swift 3/4 in URLSession?

I am making API calls in Swift using URLSession and I want to add option in my request whether to allow redirects of a request (followRedirect) but I don't know how to accomplish it.. I think there is a way in Alamofire but I can not use external…
ShinKinn
  • 66
  • 1
  • 8
1
vote
1 answer

AS3 URLRequest Timeout (not AIR)

I am building a web-app that should send some data to the server. Flash has a built in timeout limit for URLRequest set to 30 seconds. I cannot use AIR (as this solution should run from the browser) and sometimes the request is for more than…
jsaade
  • 53
  • 5
1
vote
3 answers

how to convert NSmutableURLRequest to URLRequest in Swift 4?

func requestForAccessToken(authorizationCode: String) { let grantType = "authorization_code" let redirectURL = "https://com.appcoda.linkedin.oauth/oauth".addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) // Set the POST…
1
vote
2 answers

How can I set rel=noreferrer in a URLRequest in Flash

I'm using a URLRequest to get a resource. I need to clear the Referrer information in the request. Is there a way to do this? Snippet: sound = new Sound(); var req:URLRequest = new URLRequest(url); req.method = "POST"; …
wildabeast
  • 1,723
  • 3
  • 18
  • 31
1
vote
1 answer

is network cache stays after iOS application is removed and reinstall

I have an iOS application that fetches network resources by using URLRequest with default cachePolicy. I would like to know if: When the application is deleted from my device, is all cached responses are removed as well? Or do they stay somewhere…
Duyen-Hoa
  • 15,384
  • 5
  • 35
  • 44