Search found 38 matches

by samerou
Sat May 18, 2019 5:57 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

I flashed my esp8266 and now I can see urequests there with the get function : Glad we got that one solved! >>> response = urequests.get('http:/192.168.137.1:80/info.php?requests=sam') I don’t know if that’s the source of the error, but you’re missing a slash in that URL. Should be http://192... . ...
by samerou
Sat May 18, 2019 5:24 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

I flashed my esp8266 and now I can see urequests there with the get function : >>> help('modules') __main__ http_client socket upip _boot http_client_ssl ssd1306 upip_utarfile _onewire http_server ssl upysh _webrepl http_server_ssl struct urandom apa102 inisetup sys ure array io time urequests binas...
by samerou
Sat May 18, 2019 4:33 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

>>> help(urequests) object <module 'urequests'> is of type module __name__ -- urequests __path__ -- /lib/urequests >>> So you’re not getting the built-in module, but one from the filesystem. I can think of two possible reasons for that. 1. You don’t have the built-in module, so you must be running ...
by samerou
Sat May 18, 2019 12:46 am
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

Did you `import urequests` before `help(urequests)` ? Sorry about the bad advice earlier with http.client. It might be a good idea to completely clear the filesystem on your ESP8266 and make sure it's not getting confused about other libraries on there. I did clear everything inside lib then I inse...
by samerou
Fri May 17, 2019 11:32 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

Note that in the stable release esp8266-20190125-v1.10.bin , urequests is built-in, so when you say import urequests , you are getting that one, not the one on the filesystem, unless you changed sys.path . I don’t know why it doesn’t have a get function for you though, it does for me. What does hel...
by samerou
Fri May 17, 2019 10:00 am
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

To do a HTTP(s) request as a client you can use the urequests module. Install with upip.install('urequests') and then use: import urequests response = urequests.get(URL) print(response.text) response.close() (Make sure to use the latest firmware version.) Hello Damien , I donwload the Package from ...
by samerou
Wed May 15, 2019 8:56 am
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

To do a HTTP(s) request as a client you can use the urequests module. Install with upip.install('urequests') and then use: import urequests response = urequests.get(URL) print(response.text) response.close() (Make sure to use the latest firmware version.) I will try it tonight thank you , For insta...
by samerou
Tue May 14, 2019 8:59 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

Re: send HTTP Request ESP8266

Hi, Can you post some examples of what you've tried? There's an example in the docs using the sockets API to do HTTP manually: http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/network_tcp.html This is easy because it doesn't require you to copy any additional modules or anything, but ...
by samerou
Sun May 12, 2019 3:24 pm
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 17833

send HTTP Request ESP8266

Hello , I'm trying for a while to send http request Via web browser without success and I tried everything , Any one have a solution on How to send http Request which is http://192.168.137.1:8080/info.php?request=please then Extract specific information from the same link ? I'm stuck in this phase B...
by samerou
Sat May 11, 2019 11:55 pm
Forum: ESP8266 boards
Topic: ESP8266 /XAMPP-Converting arduino to Python
Replies: 7
Views: 4771

Re: ESP8266 /XAMPP-Converting arduino to Python

I tried another solution for posting a http request in order to fill XAMPP tables but without success and Arduino code still working but micropython until now no solution What I did is adding this urequests.py https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py#L103 in ...