Timeline for How to set a header in wp_safe_remote_get()?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 22, 2016 at 6:37 | vote | accept | Anudeep GI | ||
Feb 22, 2016 at 6:37 | answer | added | Anudeep GI | timeline score: 1 | |
Feb 18, 2016 at 11:23 | history | edited | Anudeep GI | CC BY-SA 3.0 |
added 221 characters in body
|
Feb 18, 2016 at 11:21 | comment | added | Mark Kaplun | so please edit your question to include that... and explain why do you think that the headers are not being send. Also it might be useful to know your server enviroment, do you have curl enabled or some other way in which http requests are being handled | |
Feb 18, 2016 at 11:17 | comment | added | Anudeep GI | @MarkKaplun $args = array( 'timeout' => 30 , 'header' => "Accept: application/json" ); $file = wp_safe_remote_get('xxxxxxxx.xxxx/xapix/xjson/xxxxx.php', $args); I have tried this code but not working | |
Feb 18, 2016 at 11:05 | comment | added | Mark Kaplun | so what have you tried? | |
Feb 18, 2016 at 10:58 | history | edited | Anudeep GI | CC BY-SA 3.0 |
deleted 10 characters in body
|
Feb 18, 2016 at 10:50 | history | edited | birgire | CC BY-SA 3.0 |
Improved formatting, removed code scrollbar, adjusted the title. Added a tag.
|
Feb 18, 2016 at 10:39 | review | First posts | |||
Feb 18, 2016 at 11:13 | |||||
Feb 18, 2016 at 10:35 | history | asked | Anudeep GI | CC BY-SA 3.0 |