Questions tagged [urlrequest]

226 questions
0
votes
1 answer

How to get file (with japanese file name) from server using URLLoader and URLRequest in AS3

I've used URLLoader and URLRequest to get a file with japanese file name from server. However I got IO error that file is not existing (I double checked that file is existing on server and I can get other files with Latin name). Below is my…
Han La
  • 1
-1
votes
2 answers

AttributeError: 'tuple' object has no attribute 'content'

I am connecting to the API that returns a JSON object with several pieces of data and use that data to build an html page. I am having trouble with downloading a local copy of the image using python and including the image tag linking to the image.…
krappold
  • 9
  • 4
-1
votes
1 answer

Unwrapped URLRequest is always nil

I'm trying to detect clicks on links in a WKWebView and load the corresponding URLs in another WKWebView. I'm able to get the URL of the click and create a URL request but loading the URLRequest always fails with the same error: Fatal error:…
-1
votes
1 answer

Both if statements and the else printing out, however, none of it is getting the url database

This program is a console application that displays an Application Title and the Menu Options for the user, displays a list of recipe categories (i.e. Beef, Chicken, Vegan, Side, Desert, etc.), displays a list of meals based on a user selected…
-1
votes
1 answer

URL is nil or percentage encoded

I have this URL https://apps.apple.com/developer/john-doe/id32123123#see-all/mac-apps I do this let path = "https://apps.apple.com/developer/john-doe/id32123123#see-all/mac-apps" let url = URL(string: path!) the resulting url is nil. I do…
Duck
  • 32,792
  • 46
  • 221
  • 426
-1
votes
1 answer

the code is not entering the completion handler of the data task

The completion handler code is not getting executed. while i debug the code its coming till the session.datatask and after that its not getting into the completion handler. we are actually migrating this project from objectivec to swift. i am not…
-1
votes
1 answer

Downloaded images from the Metropolitan Museum collection are empty

I'm trying to download random public domain images from the Metropolitan Museum collection using their API (more info here : https://metmuseum.github.io/) and Python, unfortunatly the images I get are empty. Here is a minimal code : import…
-1
votes
2 answers

URLRequestHeader problem in actionscript

I will use the URLRequest to upload the modified image in Flex. It works fine. However, I need to add Content-Length as a URLRequestHeader for the moment, and I get error 2096. Then, I know that this header is not allowed. How can I solve this…
michael
  • 1,150
  • 7
  • 19
-1
votes
3 answers

link is not opening in uiwebview

I have link as below, https://payood.test/loofpay/XUYZGlobal/WebForms/checkoutservice%20.aspx?paymentchannel=ddd&isysid=37268474138868&amount=25&description=Transaction From…
Fahim Parkar
  • 28,922
  • 40
  • 153
  • 260
-1
votes
1 answer

Trying to select a files location + file name in AS3

I am creating a file testing program in actionscript 3. I have the URL loader to load the file path + name typed in the textbox. However I am looking to upgrade the experience. I am trying to find a way to choose a file location and name from a…
Chibizs
  • 1
  • 2
-1
votes
1 answer

ActionScript 3.0 Loop URLLoader for online game update

How do I write a URLLoader in AS3 that downloads data from the URL, updates the game, then calls itself again, indefinitely. I have already used the following but receive the error: Error #2044: Unhandled ioError:. text=Error #2032: Stream…
-1
votes
4 answers

Swift how to check an URL

I was thinking to check my URL before doing a web service call, if there is an missing page or a server down, the URL will not be accessible for exemple, if I put a wrong URL i get this: NSURLErrorDomain Code=-1003 So I wan't to check an URL before…
Ben
  • 691
  • 1
  • 12
  • 33
-1
votes
1 answer

URL requests in php?

I am looking at an API that I would like to use and am having a hard time figuring out how to use it. This API needs me to give URL requests to a website and it will respond with JSON data. An example request that they give is: curl -i -H…
Isaac Singer
  • 81
  • 2
  • 5
-1
votes
1 answer

Visit A Website Behind The Scenes In Adobe Air Application

I am needing to find a way in Actionscript 3 for a Adobe Air application to visit a website url (ex. example.com) in the background without Adobe Air opening up a web browser. After the website has loaded in the background, I would like to get all…
rs14smith
  • 569
  • 2
  • 6
  • 8
-1
votes
3 answers

Using url in C#

This code is written with python: import urllib3 http = urllib3.PoolManager() url = "http://www.example.com/" req = http.request('GET', url) source = req.dat I want to know how can I write it with C#.
Bardia Heydari
  • 737
  • 9
  • 23
1 2 3
15
16