# AFNetworking problem

**URL:** <https://forums.kodeco.com/t/afnetworking-problem/32914>\
**Category:** iOS\
**Created:** [August 4, 2017, 3:09am UTC](https://forums.kodeco.com/t/afnetworking-problem/32914 "2017-08-04T03:09:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmx](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@cmx](https://forums.kodeco.com/u/cmx)\
**Post date:** [August 4, 2017, 3:09am UTC](https://forums.kodeco.com/t/afnetworking-problem/32914/1 "2017-08-04T03:09:48Z")

</div>

I am learning AFNetworking using,

[https://www.raywenderlich.com/59255/afnetworking-2-0-tutorial](https://www.raywenderlich.com/59255/afnetworking-2-0-tutorial)

But, I can’t get data from the url,  
[http://www.raywenderlich.com/demos/weather\_sample/weather.php?format=json](http://www.raywenderlich.com/demos/weather_sample/weather.php?format=json)  
The server returns an error，‘No input file specified’ .Please help me.

Thank you.

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [August 4, 2017, 4:31am UTC](https://forums.kodeco.com/t/afnetworking-problem/32914/2 "2017-08-04T04:31:40Z")

</div>

@cmx Thanks very much for your post. To be fair, the article is over three years old, so more than likely some of the content may not be supported. You may want to consider using a different REST API to use with AFNetworking. AFNetworking is in Objective-C, so you may want to either learn to use:

[AlamoFire](https://www.raywenderlich.com/147086/alamofire-tutorial-getting-started-2)

for Swift, or try to use the REST API used in that article, with AFNetworking from the article you’re trying to work through.

I hope this helps!

---

<div class="post-metadata">

**Author:** ![cmx](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@cmx](https://forums.kodeco.com/u/cmx)\
**Post date:** [August 4, 2017, 4:37am UTC](https://forums.kodeco.com/t/afnetworking-problem/32914/3 "2017-08-04T04:37:58Z")

</div>

Thank’s for your help,it’s useful for me:grinning:

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [August 4, 2017, 4:41am UTC](https://forums.kodeco.com/t/afnetworking-problem/32914/4 "2017-08-04T04:41:27Z")

</div>

Anytime!

Take care 🙂

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [January 17, 2018, 7:10pm UTC](https://forums.kodeco.com/t/afnetworking-problem/32914/5 "2018-01-17T19:10:04Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
