Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Last active December 28, 2015 08:58
Show Gist options
  • Select an option

  • Save aaronj1335/7475030 to your computer and use it in GitHub Desktop.

Select an option

Save aaronj1335/7475030 to your computer and use it in GitHub Desktop.
astacy∂ʇoqǝɔɐʇs ☠ ~/code/frontend/webapps/msgme3.0  04:04:58 Nov14
§ curl -H 'Cookie:SessionId=e87ba716-3bbc-487f-91ca-7172737d439f; yeti-agent=136665393287845030; astacy.4e6fa6177a475eefd68fb5ee=permanent; joes.4e6fa6177a475eefd68fb5ee=permanent; wmadmin.4e6fa6177a475eefd68fb5ee=permanent; smsonly.4e6fa6177a475eefd68fb5ee=permanent; rtongsinoon.4e6fa6177a475eefd68fb5ee=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.0=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.1=permanent; PETA.50a1555198a72f1b6261306e.3.4.1=permanent; jlau.4e6fa6177a475eefd68fb5ee.3.4.1=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.2=permanent; wmadmin.4e6fa6177a475eefd68fb5ee.3.4.2=permanent; JSESSIONID=e87ba716-3bbc-487f-91ca-7172737d439f' -D - http://threebeta.waterfallmobile.com/api/v2/stream/inboxCounter
HTTP/1.1 500 Server Error
Server: nginx/1.2.7
Date: Thu, 14 Nov 2013 22:05:15 GMT
Content-Type: application/xml
Content-Length: 118
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, DELETE, PUT
Access-Control-Allow-Headers: Content-Type

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ApiError><errorMsg>Internal Server Error</errorMsg></ApiError>

Request

Request URL:http://localhost:8889/api/v2/stream/inboxCounter
Request Method:GET
Status Code:500 Internal Server Error

Request Headers

Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
content-type:application/json
Cookie:SessionId=c09cbc29-377e-4af8-ad36-14e6c9458d31; yeti-agent=136665393287845030; astacy.4e6fa6177a475eefd68fb5ee=permanent; joes.4e6fa6177a475eefd68fb5ee=permanent; wmadmin.4e6fa6177a475eefd68fb5ee=permanent; smsonly.4e6fa6177a475eefd68fb5ee=permanent; rtongsinoon.4e6fa6177a475eefd68fb5ee=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.0=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.1=permanent; PETA.50a1555198a72f1b6261306e.3.4.1=permanent; jlau.4e6fa6177a475eefd68fb5ee.3.4.1=permanent; astacy.4e6fa6177a475eefd68fb5ee.3.4.2=permanent; wmadmin.4e6fa6177a475eefd68fb5ee.3.4.2=permanent; JSESSIONID=c09cbc29-377e-4af8-ad36-14e6c9458d31
Host:localhost:8889
Pragma:no-cache
Referer:http://localhost:8889/conversations2
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1708.0 Safari/537.36
X-Requested-With:XMLHttpRequest

Response Headers

access-control-allow-headers:Content-Type
access-control-allow-methods:GET, POST, DELETE, PUT
access-control-allow-origin:*
connection:keep-alive
content-length:118
content-type:application/xml
date:Thu, 14 Nov 2013 21:57:18 GMT
server:nginx/1.2.7
@ronak
Copy link
Copy Markdown

ronak commented Nov 14, 2013

  • Adding handle: conn: 0x7f9104003a00
  • Adding handle: send: 0
  • Adding handle: recv: 0
  • Curl_addHandleToPipeline: length: 1
  • - Conn 0 (0x7f9104003a00) send_pipe: 1, recv_pipe: 0
  • About to connect() to threebeta.waterfallmobile.com port 8080 (#0)
  • Trying 74.205.85.123...
  • Connected to threebeta.waterfallmobile.com (74.205.85.123) port 8080 (#0)

    GET /api/v2/stream/inboxCounter HTTP/1.1
    User-Agent: curl/7.30.0
    Host: threebeta.waterfallmobile.com:8080
    Cookie: SessionId=17859521-0ba7-41c5-9f33-2366a7326c54; JSESSIONID=17859521-0ba7-41c5-9f33-2366a7326c54
    Accept:application/json

    < HTTP/1.1 200 OK
    < Access-Control-Allow-Origin: *
    < Access-Control-Allow-Methods: GET, POST, DELETE, PUT
    < Access-Control-Allow-Headers: Content-Type
    < Content-Type: application/json
    < Transfer-Encoding: chunked
  • Server Jetty(7.x.y-SNAPSHOT) is not blacklisted
    < Server: Jetty(7.x.y-SNAPSHOT)
    <
  • Connection #0 to host threebeta.waterfallmobile.com left intact
    {"id":null,"total":25}

@ronak
Copy link
Copy Markdown

ronak commented Nov 14, 2013

* Adding handle: conn: 0x7f9104003a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f9104003a00) send_pipe: 1, recv_pipe: 0
* About to connect() to threebeta.waterfallmobile.com port 8080 (#0)
*   Trying 74.205.85.123...
* Connected to threebeta.waterfallmobile.com (74.205.85.123) port 8080 (#0)
> GET /api/v2/stream/inboxCounter HTTP/1.1
> User-Agent: curl/7.30.0
> Host: threebeta.waterfallmobile.com:8080
> Cookie: SessionId=17859521-0ba7-41c5-9f33-2366a7326c54; JSESSIONID=17859521-0ba7-41c5-9f33-2366a7326c54
> Accept:application/json
> 
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, DELETE, PUT
< Access-Control-Allow-Headers: Content-Type
< Content-Type: application/json
< Transfer-Encoding: chunked
* Server Jetty(7.x.y-SNAPSHOT) is not blacklisted
< Server: Jetty(7.x.y-SNAPSHOT)
< 
* Connection #0 to host threebeta.waterfallmobile.com left intact
{"id":null,"total":25}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment