Skip to content

Commit 137635c

Browse files
author
Matt Bernier
authored
Merge pull request #33 from Braunson/master
Added TROUBLESHOOTING + Debug Info
2 parents 8bff396 + c252185 commit 137635c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

TROUBLESHOOTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
If you can't find a solution below, please open an [issue](https://github.com/sendgrid/php-http-client/issues).
2+
3+
## Table of Contents
4+
5+
* [Viewing the Request Body](#request-body)
6+
7+
<a name="request-body"></a>
8+
## Viewing the Request Body
9+
10+
When debugging or testing, it may be useful to examine the raw request body. In the `examples/example.php` file, after your API call use this code to echo out the statuscode, body and headers:
11+
12+
```php
13+
echo $response->statusCode();
14+
echo $response->body();
15+
echo $response->headers();
16+
```

0 commit comments

Comments
 (0)