# Http trace for a post

**URL:** <https://meta.discourse.org/t/http-trace-for-a-post/62993>\
**Category:** Development\
**Created:** [2017年五月19日 02:45 UTC](https://meta.discourse.org/t/http-trace-for-a-post/62993 "2017-05-19T02:45:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gchiu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gchiu/32/95856_2.png) [@gchiu](https://meta.discourse.org/u/gchiu)\
**Post date:** [2017年五月19日 07:34 UTC](https://meta.discourse.org/t/http-trace-for-a-post/62993/3 "2017-05-19T07:34:26Z")

</div>

Well, I then got a bad CSRF error ..

but that [post](https://meta.discourse.org/t/bad-csrf-token-when-making-api-request/20139) told me that I also need to include the api\_key and api\_name in the URL!

```
POST /posts.json?api_key=..very.long.api.key&api_username=thatsme HTTP/1.0
Accept: */*
Accept-Charset: utf-8
Host: www.rebolchat.me
User-Agent: REBOL
Content-Type: application/json
Content-Length: 234

{"title":"Bot Test","topic_id":36,"raw":"this is an api test that I am trying to see if I can make a post and it needs to be 20 characters","category":8,"name":"Graham","color":"49d9e9","text_color":"f0fcfd","created_at":"2017-05-19"}

```

And this works.

---

_[View the full topic](https://meta.discourse.org/t/http-trace-for-a-post/62993)._
